diff --git a/plugins/module_utils/module.py b/plugins/module_utils/module.py index 523443a..b63498b 100644 --- a/plugins/module_utils/module.py +++ b/plugins/module_utils/module.py @@ -246,7 +246,7 @@ class SystemdUnitModule(AnsibleModule): def map_param(self, **parammap: str): """maps an dict with keys for an section with given params. The key of the dictionary is the parameter and the value is the key in the unitfile. If an parameter has multiple values it adds multiple entries""" output: list[str] = [] - for param, key in parammap: + for param, key in parammap.items(): if self.params[param] is not None: params = self.params[param] if isinstance(params, list):