Skip to content

Fix resource awx_job_template by making inventory_id optional as it can be asked on prompt#7

Merged
josh-silvas merged 1 commit intojosh-silvas:mainfrom
quentinleclerc:fix-resource-job-template-inventory-optional
Jun 1, 2024
Merged

Fix resource awx_job_template by making inventory_id optional as it can be asked on prompt#7
josh-silvas merged 1 commit intojosh-silvas:mainfrom
quentinleclerc:fix-resource-job-template-inventory-optional

Conversation

@quentinleclerc
Copy link
Copy Markdown
Collaborator

Hello,

inventory_id is set as required but in fact is an optional argument as you can ask for the inventory at launch only. When omitting inventory_id and setting ask_inventory_on_launch = false, API will respond

 Unable to create Job Template got Errors:
 - inventory: [You must either set a default value or ask to prompt on launch.]

@josh-silvas josh-silvas merged commit 6039a93 into josh-silvas:main Jun 1, 2024
@josh-silvas
Copy link
Copy Markdown
Owner

Thanks for the contribution again @quentinleclerc! I've released you changes as v1.0.11

@quentinleclerc quentinleclerc deleted the fix-resource-job-template-inventory-optional branch June 3, 2024 07:48
@quentinleclerc
Copy link
Copy Markdown
Collaborator Author

Thanks @josh-silvas

quentinleclerc pushed a commit that referenced this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants