mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix tests from failing if token present for the user
This commit is contained in:
parent
4c561272a7
commit
9f05f53fd7
@ -127,7 +127,7 @@ class LoadAuth(object):
|
||||
not valid
|
||||
'''
|
||||
t_path = os.path.join(self.opts['token_dir'], tok)
|
||||
if not os.path.isfile:
|
||||
if not os.path.isfile(t_path):
|
||||
return {}
|
||||
with open(t_path, 'r') as fp_:
|
||||
tdata = self.serial.loads(fp_.read())
|
||||
|
@ -15,3 +15,4 @@ peer:
|
||||
log_file: master
|
||||
key_logfile: key
|
||||
pub_refresh: False
|
||||
token_file: /tmp/ksfjhdgiuebfgnkefvsikhfjdgvkjahcsidk
|
||||
|
Loading…
Reference in New Issue
Block a user