-
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
feat(apt): add -f --fix-broken option to apt module #27162
Conversation
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
The test
|
Hey, do I need to do something more to the PR? Let me know if I can help you to integrate it easily. Thanks |
@triat Thank you for the pull request! Apologies for the lag time on this, I'm currently going through the queue and trying to clean up stale PRs. I think the change looks fine but I would like to have some integration test(s) included. Thanks again. |
Hey @maxamillion! Don't worry, when I saw the 1600~ PR waiting, I was not expecting a quick answer. Thanks for taking the time to review this one, I'll make the test(s) ASAP. |
@triat greatly appreciated, thanks again! :) |
CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/85811/39/tests |
Hey @mattclay,I just rebased on devel, pushed to upgrade the PR and saw it was not passing anymore. I have to check but I hadn't the time right now to figure out why I can not run the test on my mac (also in a linux VM as I saw that it is recommended to run the tests on a linux OS) |
@triat If you have Docker installed on your Mac you can run the test from your branch with:
|
@@ -1100,6 +1107,7 @@ def main(): | |||
force=force_yes, | |||
dpkg_options=dpkg_options, | |||
build_dep=state_builddep, | |||
fixed=state_fixed, |
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.
The tests are failing because state_fixed
is undefined when p['state'] != 'fixed'
.
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.
thanks for the check, that's actually pretty obvious looking at the code I've made!
I've been trying this command but I don't know what I've done to get it wrong. I ran it again and it was magically properly failing. Anyway, thanks again for the help, I've fixed the initialization and I'll have to write a test now. Regarding this part, is there any recommendation if I need to install something with |
rebuild_merge |
SUMMARY
Add the option to use --fix-broken from the apt packaging system with the state: fixed
ISSUE TYPE
COMPONENT NAME
module/packaging/apt
ANSIBLE VERSION
ADDITIONAL INFORMATION