From 448c46194058df46f1030ea52e517dbdb2fcfe97 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Tue, 1 Aug 2017 22:57:04 +0530 Subject: [PATCH] Convert port value to integer (#25939) Fixes #25175 convert port value to integer explicitly --- lib/ansible/plugins/action/junos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/action/junos.py b/lib/ansible/plugins/action/junos.py index e3972899cdd..83f555d6245 100644 --- a/lib/ansible/plugins/action/junos.py +++ b/lib/ansible/plugins/action/junos.py @@ -60,10 +60,10 @@ class ActionModule(_ActionModule): if self._task.action == 'junos_netconf': pc.connection = 'network_cli' - pc.port = provider['port'] or self._play_context.port or 22 + pc.port = int(provider['port'] or self._play_context.port or 22) else: pc.connection = 'netconf' - pc.port = provider['port'] or self._play_context.port or 830 + pc.port = int(provider['port'] or self._play_context.port or 830) pc.remote_user = provider['username'] or self._play_context.connection_user pc.password = provider['password'] or self._play_context.password