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

BugFix - awx_collection - lookup_organization failed when teams and resources are not in the same org #15580

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

ecchong
Copy link

@ecchong ecchong commented Oct 11, 2024

SUMMARY

When using "role" module with "lookup_organization", it fails to find the teams it is trying to assign the roles to.

It is because the "lookup_data_populated" is not resetting, so it looks up the teams in the "lookup_organization" for the resources. Mostly it is missing "key == 'teams'" condition.

The integration test didn't catch it because it is not trying to assign role across different organizations.

ISSUE TYPE
  • Bugfix for awx_collection
COMPONENT NAME

awx_collection/plugins/modules/role.py

AWX VERSION

ADDITIONAL INFORMATION

@pb82
Copy link
Contributor

pb82 commented Oct 22, 2024

@ecchong are you still working on this? Do you need any help?

@ecchong ecchong marked this pull request as ready for review October 22, 2024 12:57
@ecchong
Copy link
Author

ecchong commented Oct 22, 2024

@pb82 it is ready for review

Copy link

sonarcloud bot commented Oct 24, 2024

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.

2 participants