mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
[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:
@@ -374,9 +374,7 @@ def main():
|
||||
)
|
||||
|
||||
# populate the dict with the user-provided vars.
|
||||
args = dict()
|
||||
for key, arg in module.params.items():
|
||||
args[key] = arg
|
||||
args = dict(module.params)
|
||||
args['check_mode'] = module.check_mode
|
||||
|
||||
# perform some Memset API-specific validation
|
||||
|
||||
Reference in New Issue
Block a user