proxy_settings = None
if proxy_settings_str:
tokens = re.split(':', proxy_settings_str)
- proxy_settings = ProxySettings(tokens[0], tokens[1], ssh_proxy_cmd)
+ proxy_settings = ProxySettings(host=tokens[0], port=tokens[1],
+ ssh_proxy_cmd=ssh_proxy_cmd)
if config.get('OS_CACERT'):
https_cacert = config.get('OS_CACERT')
proxy_str = config.get('http_proxy')
if proxy_str:
tokens = re.split(':', proxy_str)
- proxy_settings = ProxySettings(tokens[0], tokens[1],
- config.get('ssh_proxy_cmd'))
+ proxy_settings = ProxySettings(
+ host=tokens[0], port=tokens[1],
+ ssh_proxy_cmd=config.get('ssh_proxy_cmd'))
os_creds = OSCreds(username=config['username'],
password=config['password'],
image_api_version=image_api_version,
proxy_settings=proxy_settings)
- logger.info('OS Credentials = ' + str(os_creds))
+ logger.info('OS Credentials = %s', os_creds)
return os_creds