-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
update pkg_mgr.py for Amazon Linux support #56618
Conversation
ansible_distribution_major_version on Amazon Linux is 2018 which makes Amazon Linux use dnf even if it doesn't support it ansible#56583
I'm personally not a fan of parentheses around the variable in the if statement if it's not needed, but other than that, looks good to me. Thanks for the PR. |
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.
This also needs a changelog fragment, please see https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs-how-to.
The test
|
The test
|
Any idea when PR will be merged? |
(cherry picked from commit 4c00fc7)
(cherry picked from commit 4c00fc7)
SUMMARY
ansible_distribution_major_version on Amazon Linux is 2018 which makes Amazon Linux use dnf even if it doesn't support it
fixes #56583
ISSUE TYPE
COMPONENT NAME
pkg_mgr.py
ADDITIONAL INFORMATION
ansible_pkg_mgr gets set incorrectly on Amazon Linux due to this commit
d53c3cd#diff-c606658e579ad7ff8b40bddb9e84e001
before change
after change