mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 20:50:23 -07:00
Convert port value to integer (#25939)
Fixes #25175 convert port value to integer explicitly
This commit is contained in:
parent
a25c6b9478
commit
448c461940
1 changed files with 2 additions and 2 deletions
|
@ -60,10 +60,10 @@ class ActionModule(_ActionModule):
|
||||||
|
|
||||||
if self._task.action == 'junos_netconf':
|
if self._task.action == 'junos_netconf':
|
||||||
pc.connection = 'network_cli'
|
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:
|
else:
|
||||||
pc.connection = 'netconf'
|
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.remote_user = provider['username'] or self._play_context.connection_user
|
||||||
pc.password = provider['password'] or self._play_context.password
|
pc.password = provider['password'] or self._play_context.password
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue