redhat-cop / aap_utilities

Ansible Collection for automated deployment of AAP and other objects for general use
https://galaxy.ansible.com/infra/aap_utilities
GNU General Public License v3.0
81 stars 50 forks source link

Inventory fix #259

Open snagoor opened 1 month ago

snagoor commented 1 month ago

What does this PR do?

Fixes the incorrect inventory generation when the user provided group names don't match with the expected groups in aap_setup_prep_inv_nodes variable.

How should this be tested?

Automated tests are preferred, but not always doable - especially for infrastructure. Include commands to run your new feature, and also post-run commands to validate that it worked. (please use code blocks to format code samples)

All details regarding this is provided in Issue #258

Is there a relevant Issue open for this?

Provide a link to any open issues that describe the problem you are solving. resolves #258

Other Relevant info, PRs, etc

This PR is basically reverting the code changed in https://github.com/redhat-cop/aap_utilities/commit/8363732ccda4f2bb14016190d7ebe5b6233149f4