cosmetic
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Nov 2013 11:33:57 +0000 (12:33 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Nov 2013 11:33:57 +0000 (12:33 +0100)
sfa/methods/CreateGid.py

index eb001a1..0a2785f 100644 (file)
@@ -7,13 +7,13 @@ from sfa.trust.credential import Credential
 
 class CreateGid(Method):
     """
-    Create a signed credential for the object with the registry. In addition to being stored in the
+    Create a signed credential for the object with the registry. In addition to being stored in the
     SFA database, the appropriate records will also be created in the
     PLC databases
     
+    @param cred credential string
     @param xrn urn or hrn of certificate owner
     @param cert caller's certificate
-    @param cred credential string
     
     @return gid string representation
     """
@@ -39,9 +39,6 @@ class CreateGid(Method):
 
         #log the call
         origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
-
-        # log
-        origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
         self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, xrn, self.name))
 
         return self.api.manager.CreateGid(self.api, xrn, cert)