Skip to content
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

Merged
merged 3 commits into from
Jun 22, 2023

Conversation

akira6592
Copy link
Contributor

SUMMARY

Fixes #14104

Using execution_environment option in ad_hoc_command module.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • Collection
AWX VERSION
awx: 21.5.1.dev1166+g05499536ed.d20230610
ADDITIONAL INFORMATION
N/A

@github-actions github-actions bot added the component:awx_collection issues related to the collection for controlling AWX label Jun 10, 2023
@fosterseth
Copy link
Member

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)
Copy link
Member

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?

Copy link
Contributor Author

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.

@jessicamack
Copy link
Member

@akira6592 Thank you again for the contribution. I've confirmed the new integration test passes. Approving and merging.

@jessicamack jessicamack merged commit 66f14bf into ansible:devel Jun 22, 2023
14 checks passed
@akira6592 akira6592 deleted the fix-ad-hoc branch June 22, 2023 23:07
@akira6592
Copy link
Contributor Author

@jessicamack Thank you for merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ad_hoc_command: execution_environment option is ignored
4 participants