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
Fix regression introduced in b77abd0491 causing bug in inventory modu… #73429
Conversation
… which break functionality in user setting use_contrib_script_compatible_sanitization parameter.
Looking at this, I'm not sure what the goal is with reverting this change.
The change this is reverting calls So the behavior is the same, only with a change that it will display the warning. Per the documentation of the
I must be missing something if you validated this change works. |
Oh, the inventory plugins are being naughty! They are overriding a private method of the base class: ansible/lib/ansible/plugins/inventory/aws_ec2.py Lines 617 to 618 in 321606b
See 3e52a6a |
Yes I validated it works like supposed |
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.
Here's some context about why this bit of code was changed and a suggested fix to keep the warning in place #69702 (comment). In 2.8 composed groups became sanitized (silently) and was considered a "regression" - the warning was a compromise, but it accidentally broke allowing plugins to override.
That being said, 2.8 was a while ago and we probably don't need the warning anymore, so this looks fine to me.
Thanks for the fix. I'm working on adding some documentation for |
…nsible#73429) * Fix regression introduced in b77abd0 causing bug in inventory modules which break functionality in user setting use_contrib_script_compatible_sanitization parameter. * Add changelog Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com> (cherry picked from commit 4315e18)
Fix regression introduced in b77abd0 causing bug in inventory modules which break functionality in user setting use_contrib_script_compatible_sanitization parameter.
Effecting all versions since V2.8.5
SUMMARY
Reverted commit b77abd0
ISSUE TYPE
COMPONENT NAME
amazon.aws.aws_ec2
ADDITIONAL INFORMATION
Inventory module usually have setting "use_contrib_script_compatible_sanitization"
The commit I reverted cause this setting to have no effect