[PR #6575/f710a10f backport][stable-7] ini_file: try using inactive option before creating a new one (#6726)

ini_file: try using inactive option before creating a new one (#6575)

* ini_file: make inactive options as active if they exist, instead of creating a new option entry

Add changelog fragment

* Update changelogs/fragments/ini_file-use-inactive-options-when-possible.yml

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

* Fix test

* Update tests

* Fix spelling

---------

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

Co-authored-by: njutn95 <njutn95@yahoo.com>
This commit is contained in:
patchback[bot]
2023-06-19 08:01:57 +02:00
committed by GitHub
parent a406fb1e0c
commit e261332acf
3 changed files with 24 additions and 22 deletions

View File

@@ -0,0 +1,3 @@
---
bugfixes:
- ini_file - fix a bug where the inactive options were not used when possible (https://github.com/ansible-collections/community.general/pull/6575).