From: Mohamed Larabi <mohamed.larabi@inria.fr>
Date: Tue, 28 Jan 2014 09:11:35 +0000 (+0100)
Subject: fix indentation error in auth.py
X-Git-Tag: sfa-3.1-2~7
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=96a0b3ac2b13383a42fbbe0d6dde554f24a3dbd6;p=sfa.git

fix indentation error in auth.py
---

diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py
index 35c76b78..39e77e94 100644
--- a/sfa/trust/auth.py
+++ b/sfa/trust/auth.py
@@ -74,15 +74,15 @@ class Auth:
                     valid.append(cred)
                 except:
                     if speaking_for_hrn:
-                    try:
-                        self.check(cred, operation, speaking_for_hrn)
-                        speaks_for_cred = cred
-                        valid.append(cred)
-                    except:
-                        error = log_invalid_cred(cred)
-                else:
-                    error = log_invalid_cred(cred)
-                continue
+                       try:
+                          self.check(cred, operation, speaking_for_hrn)
+                          speaks_for_cred = cred
+                          valid.append(cred)
+                       except:
+                          error = log_invalid_cred(cred)
+                    else:
+                       error = log_invalid_cred(cred)
+                    continue
         
         # make sure all sliver xrns are validated against the valid credentials
         if sliver_xrns: