-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using execution_environment option in ad_hoc_command module #14105
Conversation
thanks for this contribution, we'll be taking a look at it soon |
@@ -158,6 +159,8 @@ def main(): | |||
# Attempt to look up the related items the user specified (these will fail the module if not found) | |||
post_data['inventory'] = module.resolve_name_to_id('inventories', inventory) | |||
post_data['credential'] = module.resolve_name_to_id('credentials', credential) | |||
if execution_environment: | |||
post_data['execution_environment'] = module.resolve_name_to_id('execution_environments', execution_environment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an test in awx_collection/tests/integration/targets/ad_hoc_command/tasks/main.yml
for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@john-westcott-iv Thank you for reviewing. I added integration test.
@akira6592 Thank you again for the contribution. I've confirmed the new integration test passes. Approving and merging. |
@jessicamack Thank you for merge! |
SUMMARY
Fixes #14104
Using execution_environment option in
ad_hoc_command
module.ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION