Skip to content

Commit 0439b09

Browse files
author
Federico Pires
committed
Issue 105 - Verify token by making a requests to salt-api
1 parent e6b05eb commit 0439b09

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)