zypper_repository: fix idempotency on adding repo with releasever and basearch variables (#2722) (#2753)

* zypper_repository: Check idempotency on adding repo with releasever

* Name required when adding non-repo files.

* Initial try to fix releasever

* Replace re.sub with .replace

* name releaseverrepo releaseverrepo

* Change  to ansible_distribution_version for removing repo

* improve asserts format

* add changelog

* Fix changelog formatting

Co-authored-by: Felix Fontein <felix@fontein.de>

* improve command used for retrieving releasever variable

Co-authored-by: Felix Fontein <felix@fontein.de>

* add basearch replace

* Add basearch to changelog fragment

* Check for releasever and basearch only when they are there

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 94a53adff1)

Co-authored-by: Amin Vakil <info@aminvakil.com>
This commit is contained in:
patchback[bot] 2021-06-08 08:47:15 +02:00 committed by GitHub
parent 42a1318fe3
commit dbc0fe8859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
bugfixes:
- zypper_repository - fix idempotency on adding repository with
``$releasever`` and ``$basearch`` variables
(https://github.com/ansible-collections/community.general/issues/1985).