From: Tony Mack Date: Mon, 2 Aug 2010 21:25:54 +0000 (+0000) Subject: checkCreds accepts 1 or more credentials X-Git-Tag: sfa-1.0-0~117 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c885bfba493fb7cce645e6a3c3c43e59806852d3;hp=86e8ecb4eb183d68181ecd9a4625180949f9af8e;p=sfa.git checkCreds accepts 1 or more credentials --- diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 470dc5e2..30370510 100644 --- 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)