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:
Abhijeet Kasurde 2017-05-18 12:38:26 +05:30 committed by Ganesh Nalawade
parent e7d8ebf080
commit 2f955e7da8

View file

@ -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):