From 2f955e7da85d100977bc1fb8d784cd9e63b1db2e Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 18 May 2017 12:38:26 +0530 Subject: [PATCH] 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 --- lib/ansible/module_utils/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index a1b7875ba7..94e41e8d8a 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -138,7 +138,7 @@ def commit_configuration(module, confirm=False, check=False, comment=None, confi subele.text = str(comment) if confirm_timeout: subele = SubElement(obj, 'confirm-timeout') - subele.text = int(confirm_timeout) + subele.text = str(confirm_timeout) return send_request(module, obj) def command(module, command, format='text', rpc_only=False):