- basename="%s-%s.%s.cred"%(self.hrn,hrn,type)
- return self.fullpath (basename)
- def slice_credential_filename (self, hrn):
- return self.credential_filename(hrn,'slice')
- def authority_credential_filename (self, hrn):
- return self.credential_filename(hrn,'authority')
- def my_gid_filename (self):
- return self.gid_filename (self.hrn, "user")
- def gid_filename (self, hrn, type):
- return self.fullpath ("%s.%s.gid"%(hrn,type))
- def my_pkcs12_filename (self):
- return self.fullpath ("%s.p12"%self.hrn)
+ basename = "{}-{}.{}.cred".format(self.hrn, hrn, type)
+ return self.fullpath(basename)
+
+ def slice_credential_filename(self, hrn):
+ return self.credential_filename(hrn, 'slice')
+
+ def authority_credential_filename(self, hrn):
+ return self.credential_filename(hrn, 'authority')
+
+ def my_gid_filename(self):
+ return self.gid_filename(self.hrn, "user")
+
+ def gid_filename(self, hrn, type):
+ return self.fullpath("{}.{}.gid".format(hrn, type))
+
+ def my_pkcs12_filename(self):
+ return self.fullpath("{}.p12".format(self.hrn))