fixes conditional statement for py24 compatibility

pull/13092/head
Peter Sprygada 9 years ago
parent 64e139adb1
commit d3d36eb766

@ -77,7 +77,10 @@ def nxapi_argument_spec(spec=None):
def nxapi_url(module): def nxapi_url(module):
"""Constructs a valid NXAPI url """Constructs a valid NXAPI url
""" """
proto = 'https' if module.params['use_ssl'] else 'http' if module.params['use_ssl']:
proto = 'https'
else:
proto = 'http'
host = module.params['host'] host = module.params['host']
url = '{}://{}'.format(proto, host) url = '{}://{}'.format(proto, host)
port = module.params['port'] port = module.params['port']

Loading…
Cancel
Save