fix NameError
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 9 Aug 2011 17:03:33 +0000 (13:03 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 9 Aug 2011 17:03:33 +0000 (13:03 -0400)
sfa/methods/RenewSliver.py

index a674b57..1669517 100644 (file)
@@ -34,7 +34,7 @@ class RenewSliver(Method):
 
         # Validate that the time does not go beyond the credential's expiration time
         requested_time = utcparse(expiration_time)
-        max_renew_days = int(api.config.SFA_MAX_SLICE_RENEW)
+        max_renew_days = int(self.api.config.SFA_MAX_SLICE_RENEW)
         if requested_time > Credential(string=valid_creds[0]).get_expiration():
             raise InsufficientRights('Renewsliver: Credential expires before requested expiration time')
         if requested_time > datetime.datetime.utcnow() + datetime.timedelta(days=max_renew_days):