[PR #8876/6af74d1b backport][stable-9] multiple modules: improve dict.items() loops (#8882)

multiple modules: improve dict.items() loops (#8876)

* multiple modules: improve dict.items() loops

* simplify in memset_* modules

* add changelog frag

(cherry picked from commit 6af74d1ba6)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2024-09-18 17:50:02 +02:00
committed by GitHub
parent e6edf9cdea
commit 53a941cee7
16 changed files with 44 additions and 43 deletions

View File

@@ -149,7 +149,7 @@ def core(module):
# Then we patch keys that are different
for key, value in user_data.items():
if key not in present_user_data or user_data[key] != present_user_data[key]:
if key not in present_user_data or value != present_user_data[key]:
changed = True
if compute_api.module.check_mode: