Skip to content
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

Add ignore_repo_failure option to suppress zypper's exit code 106 on … #35448

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

isbm
Copy link
Contributor

@isbm isbm commented Aug 15, 2016

What does this PR do?

Sync with the latest Zypper changes.

What issues does this PR fix or reference?

If Zypper finds at least one wrong repository (not available, empty etc) it stops everything, which is a correct behaviour. However, sometimes it is needed to "ignore" this kind of setup, as long as package is anyway available. For this ignore_repo_failure=False has been added. In order to let this start working, ignore_repo_failure needs to be set to True explicitly. The error message is still included for further references.

Tests written?

No

@isbm
Copy link
Contributor Author

isbm commented Aug 15, 2016

@dincamihai Take an eyeball on this, please.

@dincamihai
Copy link
Contributor

@isbm it think this is fine.
It would be nice to have some tests for checking how __no_raise and __ignore_repo_failure work together and/or to explain the difference between them in the docstring.
What do you think?

@isbm
Copy link
Contributor Author

isbm commented Aug 15, 2016

@dincamihai I think it is already explained for the user. As of tests I would open a separate PR, since we don't have tests for the whole installation thing. 😢

@dincamihai
Copy link
Contributor

dincamihai commented Aug 15, 2016

@isbm ok. let's merge it for now you have my blessing :) but we should create a card to write more tests for this module and its flags.

@isbm
Copy link
Contributor Author

isbm commented Aug 15, 2016

@dincamihai Agreed. @cachedout your turn 😉 It has to be propagated up to develop everywhere.

@cachedout cachedout merged commit 5c9428c into saltstack:2015.8 Aug 16, 2016
@cachedout
Copy link
Contributor

LGTM. Thanks, @isbm

@isbm isbm deleted the isbm-zypper-106-fix branch August 31, 2016 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants