1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
patchback[bot] a722e038cc
Avoid incorrectly marking zfs tasks as changed (#2454) (#2484)
* Avoid incorrectly marking zfs tasks as changed

The zfs module will incorrectly mark certain tasks as having been
changed. For example, if a dataset has a quota of "1G" and the user
changes it to "1024M", the actual quota vale has not changed, but since
the module is doing a simple string comparison between "1G" and "1024M",
it marks the step as "changed".

Instead of trying to handle all the corner cases of zfs (another example
is when the zpool "altroot" property has been set), this change simply
compares the output of "zfs-get" from before and after "zfs-set" is
called

* update changelog format

* Update changelogs/fragments/2454-detect_zfs_changed.yml

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

* add note about check_mode

* Update plugins/modules/storage/zfs/zfs.py

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

* Update plugins/modules/storage/zfs/zfs.py

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

* clarify check mode qualifications

* rephrase to avoid hypothetical

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

Co-authored-by: sam-lunt <samuel.j.lunt@gmail.com>
2021-05-10 18:17:03 +02:00
..
action Bump version to 2.0.0 (#1369) 2020-11-26 14:26:36 +01:00
become Make plugins pass validation. (#2414) (#2431) 2021-05-03 13:51:10 +02:00
cache fixed Python 3 keys() usage (#1861) 2021-02-23 23:19:27 +01:00
callback Make plugins pass validation. (#2414) (#2431) 2021-05-03 13:51:10 +02:00
connection funcd connection plugin is now usable/loadable (#2235) 2021-04-14 09:25:57 +02:00
doc_fragments Allow keycloak modules to take token as parameter for the auth. (#2250) 2021-04-20 13:20:46 +02:00
filter New filter plugins: hashids_encode and hashids_decode (#2244) 2021-04-17 20:00:03 +02:00
inventory fix stackpath_compute validate_config (#2448) (#2475) 2021-05-09 22:46:17 +02:00
lookup convert string returned by plugin to unicode (#2329) 2021-04-24 12:20:11 +02:00
module_utils Fix incorrect URL_REALMS in keycloak.py (#2335) 2021-04-26 07:01:43 +02:00
modules Avoid incorrectly marking zfs tasks as changed (#2454) (#2484) 2021-05-10 18:17:03 +02:00