Skip to content

Bugfix: Restore boolean values from the repo configuration - #33088

Merged
cachedout merged 4 commits into
saltstack:2015.8from
isbm:isbm-zypper-fix-booleans
May 6, 2016
Merged

cachedout merged 4 commits into
saltstack:2015.8from
isbm:isbm-zypper-fix-booleans

Conversation

@isbm

@isbm isbm commented May 6, 2016 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Restores broken behaviour by add2111

What issues does this PR fix or reference?

0 and 1 values should be False and True respectively.

Previous Behavior

Boolean values from the Zypper's repository configuration were returned as an integer types.

New Behavior

Boolean values from the Zypper's repository configuration are returned as a boolean types.

➡ Bonus!

Bugfix: setting repo priority was failing with the following error:

Failed to configure repo 'NON_Public:Infrastructure': zypper command failed:
Invalid priority ''102''. Use a positive integer number. 
The greater the number, the lower the priority.

Tests written?

Yes

@isbm
isbm force-pushed the isbm-zypper-fix-booleans branch from a849b8e to 3ca203e Compare May 6, 2016 11:30
@cachedout
cachedout merged commit 6d60492 into saltstack:2015.8 May 6, 2016
@isbm
isbm deleted the isbm-zypper-fix-booleans branch May 13, 2016 09:27
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.

2 participants