Closed amunro-tsl closed 4 months ago
Hi @amunro-tsl, unfortunately this isn't directly applicable for this collection, instead you'll need to raise the same thing over at the awx.awx collection. I've an idea on how it might be done so if you do raise it over there and I get time I may raise a PR for it.
My thoughts are that you would have an optional unified_job_template_type
option which gets added as a query param on the search for the UJT.
If and when it's accepted there, we can add the relevant change here if required.
Summary
If the project and the template are named the same, schedule returns the following error:
You should be able to name a project and template the same; this makes sense if you want to name the project/template/inventory the same to show they are linked, etc.
An improvement would be to allow you to specify if the resource is a project, template, etc. Another way to improve this is to prioritize template over other resource types.
Work around is to name the project
helix_test Project
. Obviously a quick change but it should not have this issue, and someone will need to try and figure out why its failing (time/effort), so a fix would be much appreciated.Issue Type
Ansible, Collection, Controller details
infra.controller_configuration 2.9.0 (latest).
Controller version: 4.5.7
OS / ENVIRONMENT
Linux (ubuntu 22.04).
Desired Behavior
Prioritize the template?
Actual Behavior
Fails.
Please give some details of what is actually happening. Include a [minimum complete verifiable example] with:
STEPS TO REPRODUCE