Fix tests from failing if token present for the user

This commit is contained in:
Thomas S Hatch 2012-10-22 14:43:47 -06:00
parent 4c561272a7
commit 9f05f53fd7
2 changed files with 2 additions and 1 deletions

View File

@ -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())

View File

@ -15,3 +15,4 @@ peer:
log_file: master
key_logfile: key
pub_refresh: False
token_file: /tmp/ksfjhdgiuebfgnkefvsikhfjdgvkjahcsidk