From c885bfba493fb7cce645e6a3c3c43e59806852d3 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 2 Aug 2010 21:25:54 +0000 Subject: [PATCH 1/1] checkCreds accepts 1 or more credentials --- sfa/trust/auth.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.0