Save commit_timeout as string in junos_config (#24761)
Fix converts commit_timeout to string as Elementree.SubElement requires text as string. Fixes #24611 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
e7d8ebf080
commit
2f955e7da8
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ def commit_configuration(module, confirm=False, check=False, comment=None, confi
|
||||||
subele.text = str(comment)
|
subele.text = str(comment)
|
||||||
if confirm_timeout:
|
if confirm_timeout:
|
||||||
subele = SubElement(obj, 'confirm-timeout')
|
subele = SubElement(obj, 'confirm-timeout')
|
||||||
subele.text = int(confirm_timeout)
|
subele.text = str(confirm_timeout)
|
||||||
return send_request(module, obj)
|
return send_request(module, obj)
|
||||||
|
|
||||||
def command(module, command, format='text', rpc_only=False):
|
def command(module, command, format='text', rpc_only=False):
|
||||||
|
|
Loading…
Reference in a new issue