fixed map_param
Dieser Commit ist enthalten in:
Ursprung
7246f9bfcb
Commit
6e1182048e
|
@ -246,7 +246,7 @@ class SystemdUnitModule(AnsibleModule):
|
||||||
def map_param(self, **parammap: str):
|
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"""
|
"""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] = []
|
output: list[str] = []
|
||||||
for param, key in parammap:
|
for param, key in parammap.items():
|
||||||
if self.params[param] is not None:
|
if self.params[param] is not None:
|
||||||
params = self.params[param]
|
params = self.params[param]
|
||||||
if isinstance(params, list):
|
if isinstance(params, list):
|
||||||
|
|
Laden…
In neuem Issue referenzieren