new slide credential file names
[sface.git] / sface / sfirenew.py
index abbeb57..f2cab6b 100644 (file)
@@ -63,6 +63,11 @@ class SfiRenewer(QObject):
         if os.path.exists(sliceCredName):
             os.remove(sliceCredName)
 
+        # newer SFA has a slightly different slice credential name
+        sliceCredName = config.fullpath(self.hrn + ".slice.cred")
+        if os.path.exists(sliceCredName):
+            os.remove(sliceCredName)
+
         open("/tmp/expiration", "w").write(self.newExpiration.strftime("%Y-%m-%dT%H:%M:%SZ"))
 
         # call renewSlivers on the aggregate