mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix default nxapi port setting when use_ssl set (#28236)
* Fix port setting when use_ssl set
This commit is contained in:
parent
bcb9644f39
commit
8f4bc8150f
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,10 @@ class ActionModule(_ActionModule):
|
||||||
provider['host'] = self._play_context.remote_addr
|
provider['host'] = self._play_context.remote_addr
|
||||||
|
|
||||||
if provider.get('port') is None:
|
if provider.get('port') is None:
|
||||||
provider['port'] = 80
|
if provider.get('use_ssl'):
|
||||||
|
provider['port'] = 443
|
||||||
|
else:
|
||||||
|
provider['port'] = 80
|
||||||
|
|
||||||
if provider.get('timeout') is None:
|
if provider.get('timeout') is None:
|
||||||
provider['timeout'] = self._play_context.timeout
|
provider['timeout'] = self._play_context.timeout
|
||||||
|
|
Loading…
Reference in a new issue