1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-26 22:23:26 +00:00
community.general/plugins
patchback[bot] 6cd8c06f79
[PR #12022/6c2301db backport][stable-12] zypper_repository: fix enabled/autorefresh/gpgcheck being overridden by .repo file content (#12250)
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:33:59 +02:00
..
action [PR #12078/e6ca0df5 backport][stable-12] Fix typing (#12079) 2026-05-19 08:25:30 +02:00
become [PR #11771/df252e5f backport][stable-12] incus, machinectl, run0 - fix become over pty connections (#11827) 2026-04-15 22:01:06 +02:00
cache [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00
callback [PR #12067/f677c2ab backport][stable-12] counter_enabled callback: display output for looped tasks (#12240) 2026-06-13 17:33:50 +02:00
connection [PR #12163/f9d4f0ad backport][stable-12] Fix incus Windows modules with ansible-core 2.21 (#12178) 2026-06-02 21:18:39 +02:00
doc_fragments [PR #11462/ce7cb4e9 backport][stable-12] New module icinga2_downtime (#11532) 2026-02-23 06:17:51 +01:00
filter [PR #12167/97b464de backport][stable-12] version_sort filter: fix example's description (#12170) 2026-06-02 21:18:20 +02:00
inventory [PR #11573/f9e583da backport][stable-12] fix: remove HTTPStatus constructs introduced in Python 3.11 (#11575) 2026-03-12 20:59:26 +01:00
lookup [PR #12140/48db8630 backport][stable-12] filetree lookup: handle invalid exclude regex with AnsibleError (#12183) 2026-06-04 06:28:35 +02:00
module_utils [PR #12124/b799c6f5 backport][stable-12] redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12173) 2026-06-02 21:18:06 +02:00
modules [PR #12022/6c2301db backport][stable-12] zypper_repository: fix enabled/autorefresh/gpgcheck being overridden by .repo file content (#12250) 2026-06-13 17:33:59 +02:00
plugin_utils [PR #11567/9b72d954 backport][stable-12] Add missing __future__ imports (#11569) 2026-03-11 07:10:34 +01:00
test [PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix (#11409) 2026-01-09 19:36:52 +01:00