community.general/plugins
patchback[bot] 39c39e3de1
[PR #7273/8a9b9827 backport][stable-7] Add `ignore_spaces` option to `ini_file` to ignore spacing changes (#7279)
Add `ignore_spaces` option to `ini_file` to ignore spacing changes (#7273)

* Add `ignore_spaces` option to `ini_file` to ignore spacing changes

Add a new `ignore_spaces` option to the `ini_file` module which, if
true, prevents the module from changing a line in a file if the only
thing that would change by doing so is whitespace before or after the
`=`.

Also add test cases for this new functionality. There were previously
no tests for `ini_file` at all, and this doesn't attempt to fix that,
but it does add tests to ensure that the new behavior implemented here
as well as the old behavior in the affected code are correct.

Fixes #7202.

* Add changelog fragment

* pep8 / pylint

* remove unused import

* fix typo in comment in integration test file

* Add symlink tests to main.yml

It appears that #6546 added symlink tests but neglected to add them to
main.yml so they weren't being executed.

* ini_file symlink tests; create output files in correct location

* Add integration tests for ini_file ignore_spaces

* PR feedback

(cherry picked from commit 8a9b98273d)

Co-authored-by: Jonathan Kamens <jik@kamens.us>
2023-09-17 14:36:05 +02:00
..
action [PR #7102/55cfd27b backport][stable-7] freebsd: shutdown -p ... on freebsd to power off machine (#7112) 2023-08-14 21:19:16 +02:00
become [PR #6935/24feb1dd backport][stable-7] machinectl become plugin: mark as require_tty (#6942) 2023-07-15 16:27:26 +02:00
cache [PR #6627/011b2f8b backport][stable-7] Start using semantic markup (#6664) 2023-06-10 10:53:50 +02:00
callback [PR #7179/631d215f backport][stable-7] Add unixy support for check_mode_markers (#7201) 2023-09-03 18:17:29 +02:00
connection [PR #7099/bf728aad backport][stable-7] chroot: add `disable_root_check` option (#7111) 2023-08-14 19:19:05 +00:00
doc_fragments [PR #6839/e5dc6978 backport][stable-7] proxmox module utils: better error msg when token fails with old proxmoxer (#6846) 2023-07-03 22:57:39 +02:00
filter [PR #6627/011b2f8b backport][stable-7] Start using semantic markup (#6664) 2023-06-10 10:53:50 +02:00
inventory [PR #7184/0c03f34f backport][stable-7] plugins/inventory/cobbler: Add exclude/include_mgmt_classes (#7208) 2023-09-05 20:50:11 +02:00
lookup [PR #7241/1beb38ce backport][stable-7] Use `get(..)` instead of [..] for safe lookup of value (Fixes #7240) (#7258) 2023-09-13 06:24:22 +00:00
module_utils [PR #7200/8fa667ee backport][stable-7] CmdRunner bugfix (#7228) 2023-09-10 09:00:14 +02:00
modules [PR #7273/8a9b9827 backport][stable-7] Add `ignore_spaces` option to `ini_file` to ignore spacing changes (#7279) 2023-09-17 14:36:05 +02:00
test Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00