Always pass username, even for --token-only

Change-Id: I3cf164a2d6573fe1f8d3e610c859bfa5ad19aaed
Fixes: bug #1160648
This commit is contained in:
Steve Baker
2013-03-27 16:12:55 +13:00
parent 841ded0a5a
commit 1f2227807f

View File

@@ -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)