git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
checkCreds accepts 1 or more credentials
[sfa.git]
/
sfa
/
trust
/
auth.py
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)