Skip to content

Commit

Permalink
Issue 105 - Verify token by making a requests to salt-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Pires committed Jul 31, 2017
1 parent e6b05eb commit 0439b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pepper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ def run(self):
if api.auth['expire'] < time.time()+30:
logger.error('Login token expired')
raise Exception('Login token expired')
api.req('/stats')
except Exception as e:
if e.args[0] is not 2:
logger.error('Unable to load login token from ~/.peppercache '+str(e))
Expand Down

0 comments on commit 0439b09

Please sign in to comment.