mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
multiple modules: improve dict.items() loops (#8876)
* multiple modules: improve dict.items() loops * simplify in memset_* modules * add changelog frag
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user