mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-06-21 17:39:03 +02:00
removed clean lines too soon
This commit is contained in:
parent
b6a279e8e8
commit
41020ad845
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ def clean_params(params):
|
|||
del params[key]
|
||||
continue
|
||||
|
||||
new_key = re.sub('_', '-', key)
|
||||
if new_key != key:
|
||||
params[new_key] = str(params[key])
|
||||
del params[key]
|
||||
continue
|
||||
|
||||
if params[key] == "yes":
|
||||
params[key] = "true"
|
||||
if params[key] == "no":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue