Skip to content

Commit

Permalink
Changed conditional to point to username field in config
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Oswalt <[email protected]>
  • Loading branch information
Matt Oswalt committed Feb 16, 2017
1 parent 3bb86ec commit 83af8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st2client/st2client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_client(self, args, debug=False):
password = credentials.get('password', None)
cache_token = rc_config.get('cli', {}).get('cache_token', False)

if credentials:
if username:
# Credentials are provided, try to authenticate agaist the API
try:
token = self._get_auth_token(client=client, username=username, password=password,
Expand Down

0 comments on commit 83af8a4

Please sign in to comment.