From 6e1182048eef041c8df3cff24ce915cb61e4fccb Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 23 Apr 2023 11:26:41 +0200 Subject: [PATCH] fixed map_param --- plugins/module_utils/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):