Fix default nxapi port setting when use_ssl set (#28236)

* Fix port setting when use_ssl set
This commit is contained in:
Mike Wiebe 2017-08-16 11:38:38 -04:00 committed by Nathaniel Case
parent bcb9644f39
commit 8f4bc8150f

View file

@ -93,6 +93,9 @@ 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:
if provider.get('use_ssl'):
provider['port'] = 443
else:
provider['port'] = 80 provider['port'] = 80
if provider.get('timeout') is None: if provider.get('timeout') is None: