Always pass username, even for --token-only
Change-Id: I3cf164a2d6573fe1f8d3e610c859bfa5ad19aaed Fixes: bug #1160648
This commit is contained in:
@@ -301,13 +301,13 @@ class HeatShell(object):
|
||||
'ca_file': args.ca_file,
|
||||
'cert_file': args.cert_file,
|
||||
'key_file': args.key_file,
|
||||
'username': args.os_username
|
||||
}
|
||||
|
||||
if not endpoint:
|
||||
endpoint = self._get_endpoint(_ksclient, **kwargs)
|
||||
|
||||
if not args.token_only:
|
||||
kwargs['username'] = args.os_username
|
||||
kwargs['password'] = args.os_password
|
||||
|
||||
client = heatclient.Client(api_version, endpoint, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user