Skip to content

Commit

Permalink
Add return so we don't write "Logged in as x" on failed log in attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Feb 21, 2017
1 parent 8e7572b commit 52a7b88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions st2client/st2client/commands/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def run_and_print(self, args, **kwargs):
if self.app.client.debug:
raise

return

print('Logged in as %s' % (args.username))

if not args.write_password:
Expand Down

0 comments on commit 52a7b88

Please sign in to comment.