Add a small change to work around password strings from outdated CUCM rules from previous versions.
This commit is contained in:
parent
7ad0ad33c8
commit
33b5055b62
BIN
cucm/2.4/cucm-0.4.1.mkp
Executable file
BIN
cucm/2.4/cucm-0.4.1.mkp
Executable file
Binary file not shown.
@ -12,7 +12,10 @@ def agent_cucm_arguments(params, host_config):
|
||||
args += ["-u", params["user"]]
|
||||
|
||||
if "password" in params:
|
||||
args += ["-s", params["password"].unsafe()]
|
||||
p = params["password"]
|
||||
if type(p) != str:
|
||||
p = p.unsafe()
|
||||
args += ["-s", p]
|
||||
|
||||
if "port" in params:
|
||||
args += ["-p", str(params["port"])]
|
||||
|
Loading…
x
Reference in New Issue
Block a user