1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-13 19:45:29 +00:00
community.general/plugins
patchback[bot] 660b5d2c9d
[PR #12022/6c2301db backport][stable-13] zypper_repository: fix enabled/autorefresh/gpgcheck being overridden by .repo file content (#12251)
zypper_repository: fix `enabled`/`autorefresh`/`gpgcheck` being overridden by .repo file content (#12022)

* fix(zypper_repository): stop .repo file content overriding user-specified enabled/autorefresh/gpgcheck

When repo= pointed to a .repo file, values parsed from that file were
overwriting the desired state set from module params, causing enabled: false
to have no effect.

Fixes #8783

* changelog: add fragment for PR 12022

* fix(zypper_repository): preserve .repo file settings when parameters are not explicitly provided

When enabled/autorefresh/disable_gpg_check are not provided by the user,
fall back to values from the .repo file before applying hard defaults,
so that existing tasks relying on the .repo file content are not broken.



---------


(cherry picked from commit 6c2301db33)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:34:02 +02:00
..
action [PR #12093/1bf5e6e6 backport][stable-13] iptables_state: clean up code (#12098) 2026-05-25 15:34:01 +02:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback [PR #12067/f677c2ab backport][stable-13] counter_enabled callback: display output for looped tasks (#12241) 2026-06-13 17:33:53 +02:00
connection [PR #12163/f9d4f0ad backport][stable-13] Fix incus Windows modules with ansible-core 2.21 (#12179) 2026-06-02 21:18:49 +02:00
doc_fragments [PR #11752/d4031f36 backport][stable-13] kopia: Add kopia_repository module (#12127) 2026-05-30 15:12:10 +02:00
filter [PR #12167/97b464de backport][stable-13] version_sort filter: fix example's description (#12171) 2026-06-02 21:18:37 +02:00
inventory [PR #12094/cbc6f6ee backport][stable-13] multiple: replace namedtuple with dataclass (#12102) 2026-05-25 15:59:50 +02:00
lookup [PR #12140/48db8630 backport][stable-13] filetree lookup: handle invalid exclude regex with AnsibleError (#12184) 2026-06-04 06:28:33 +02:00
module_utils [PR #12215/4d72ec32 backport][stable-13] xenserver_guest_info: use fallback chain for VDI format detection (#12230) 2026-06-12 23:46:27 +02:00
modules [PR #12022/6c2301db backport][stable-13] zypper_repository: fix enabled/autorefresh/gpgcheck being overridden by .repo file content (#12251) 2026-06-13 17:34:02 +02:00
plugin_utils Lookup plugins: prevent using _terms for positional arguments, and reject positional arguments completely for lookups that don't use them (#12060) 2026-05-17 09:43:21 +02:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00