git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
234e466
)
compare credential expiration against datetime.utcnow() instead of datetime.today()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 21 Sep 2011 17:19:31 +0000
(13:19 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 21 Sep 2011 17:19:31 +0000
(13:19 -0400)
sfa/plc/api.py
patch
|
blob
|
history
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
8d0e806
..
8de67d6
100644
(file)
--- a/
sfa/plc/api.py
+++ b/
sfa/plc/api.py
@@
-140,7
+140,7
@@
class SfaAPI(BaseAPI):
cred = Credential(filename = cred_filename)
# make sure cred isnt expired
if not cred.get_expiration or \
- datetime.datetime.
today
() < cred.get_expiration():
+ datetime.datetime.
utcnow
() < cred.get_expiration():
return cred.save_to_string(save_parents=True)
# get a new credential