-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
apt_rpm: fix package install check #8263
apt_rpm: fix package install check #8263
Conversation
plugins/modules/apt_rpm.py
Outdated
for package in pkgspec: | ||
if not query_package_provides(module, package): |
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.
It's package
here, but still packages
below. I don't know this module and how it works, but is this really correct?
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.
packages
is the concatenated list of elements of pkgspec
, and below it would be used correctly assuming the variable wouldn't be clobbered here. So from the logic, the one below should stay packages
, and this one should be package
.
b950747
to
ef7befb
Compare
ef7befb
to
0055298
Compare
17e11d7
into
ansible-collections:main
Backport to stable-7: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 17e11d7 on top of patchback/backports/stable-7/17e11d7d7e1ddd6bf3e73536a464aea08fd20084/pr-8263 Backporting merged PR #8263 into main
🤖 @patchback |
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #8270 🤖 @patchback |
Fix package install check. (cherry picked from commit 17e11d7)
@mariolenz thanks for reviewing this! |
Fix package install check. (cherry picked from commit 17e11d7)
Backport to stable-2.7 in #8271. |
…heck (#8270) apt_rpm: fix package install check (#8263) Fix package install check. (cherry picked from commit 17e11d7) Co-authored-by: Felix Fontein <[email protected]>
Fix package install check.
Fix package install check.
SUMMARY
The for loop variable is
packages
, but the loop body usespackage
. This is obviously a typo, causing the loop to check the same package (from a previousfor
loop) multiple times.ISSUE TYPE
COMPONENT NAME
apt_rpm