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:
86e8ecb
)
checkCreds accepts 1 or more credentials
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 2 Aug 2010 21:25:54 +0000
(21:25 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 2 Aug 2010 21:25:54 +0000
(21:25 +0000)
sfa/trust/auth.py
patch
|
blob
|
history
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
470dc5e
..
3037051
100644
(file)
--- a/
sfa/trust/auth.py
+++ b/
sfa/trust/auth.py
@@
-37,6
+37,8
@@
class Auth:
def checkCredentials(self, creds, operation, hrn = None):
valid = []
+ if not isinstance(creds, list):
+ creds = [creds]
for cred in creds:
try:
self.check(cred, operation, hrn)