Skip to content

Commit 4a7ff5d

Browse files
authored
Merge pull request #107 from fedepires/issue_105_expired_token
Issue 105 - Verify token by making a requests to salt-api
2 parents e6b05eb + 0439b09 commit 4a7ff5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pepper/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def run(self):
428428
if api.auth['expire'] < time.time()+30:
429429
logger.error('Login token expired')
430430
raise Exception('Login token expired')
431+
api.req('/stats')
431432
except Exception as e:
432433
if e.args[0] is not 2:
433434
logger.error('Unable to load login token from ~/.peppercache '+str(e))

0 commit comments

Comments
 (0)