-
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
zypper_repository: preserve attributes enabled, autorefresh and gpgcheck if provided from the task parameters #9108
Open
TobiasZeuch181
wants to merge
10
commits into
ansible-collections:main
Choose a base branch
from
TobiasZeuch181:fix_overriding_enablement_in_zypper_module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+54
−13
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2004d37
Don't override enabled, autorefresh and gpgcheck if provided from the…
TobiasZeuch181 ba8eca9
Adding code to set default values
TobiasZeuch181 a016d5b
Reordering how the boolean parameters are filled
TobiasZeuch181 71df6f4
Updating the content of the changelog file
TobiasZeuch181 b5431b4
Adding tests for modifying the repository
TobiasZeuch181 2635f51
Remove extra line that breaks the PEP8 sanity check
TobiasZeuch181 cefb03a
remove defaults and replace logic for checking defined parameters
TobiasZeuch181 48ad95c
Simplify the check for flags
TobiasZeuch181 aa29475
Update changelogs/fragments/8783-preserve-parameters-provided-from-ta…
TobiasZeuch181 0e43696
Use correct default-value for autorefresh
TobiasZeuch181 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
changelogs/fragments/8783-preserve-parameters-provided-from-task-in-zypper-module.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- zypper-module - only read attributes ``enabled``, ``disable_gpg_check`` and ``autorefresh`` from local repo files, if the parameters were not already provided by the task parameters (https://github.com/ansible-collections/community.general/pull/9108). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 above three lines are indiscriminantly overwriting the values from the repo file (and the defaults set in the code above) with the values provided by the user (resp. the module defaults).
(Also this now overrides the values from the repo, while before the repo values overrode the values provided by the user. I guess both are wrong, but the current way is a breaking change and the old way has been the case for a longer time, so the module should stick to it unless the user explicitly tells the module to not do so.)