Add --use-job-endpoint option for job launch.#184
Conversation
| # Get the job template from Ansible Tower. | ||
| # This is used as the baseline for starting the job. | ||
|
|
||
| tags = kwargs.get('tags', None) |
There was a problem hiding this comment.
I see what you're doing to maintain the same old use-pattern with tags here. But couldn't we remove all the special cases for tags if we did a single replacement at the start where we pop tags from kwargs and put re-insert it as job_tags? I don't see any reason this should be different from limit or skip_tags, aside from a quick substitution of the alias.
There was a problem hiding this comment.
@AlanCoding Great idea! But since this will be a pure restructure unrelated to any specific issue, shall we make an isolated PR for that after this one is merged?
There was a problem hiding this comment.
sure, and for right here, the only reason this line about tags was added was because it was absorbed into kwargs. That's going in the right direction, so we'll leave it for now. I'm still gearing up to run some test cases with the feature in general right now.
|
I'm going to past some abbreviated output: I see that Also, passing the data to the job |
|
@AlanCoding Thx for pointing out, will look into it. As for the redundant data, I found it annoying too. But since it works anyway, and altering the original design would probably cause back compatibility issues, let us leave it be for now. |
|
👍 re-tested this and confirmed that |
Connect to #136.
Now user can use this flag to disable
/job_templates/\d/launch/endpoint during job launch.Note setting this flag will disable any prompt checkbox ---- jobs will be created with provided prompt-for fields regardless of whether their checkboxes on the server side is checked or not.