X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fmethods%2FRemove.py;h=413d140c87dcc64864e350f0b6bee296761150b5;hp=a0614498ca5ea9f4e3447f297d9d87f9fe3fac15;hb=fd395e1944dcd49f10a4d5b27ce4983ad389fb96;hpb=00440a7c7e509301cb49db90ff15abc0f479aaf3 diff --git a/sfa/methods/Remove.py b/sfa/methods/Remove.py index a0614498..413d140c 100644 --- a/sfa/methods/Remove.py +++ b/sfa/methods/Remove.py @@ -1,5 +1,6 @@ from sfa.util.xrn import Xrn from sfa.util.method import Method +from sfa.util.sfalogging import logger from sfa.trust.credential import Credential @@ -15,7 +16,7 @@ class Remove(Method): @param type record type @param xrn human readable name of record to remove (hrn or urn) - @return 1 if successful, faults otherwise + @return 1 if successful, faults otherwise """ interfaces = ['registry'] @@ -40,7 +41,7 @@ class Remove(Method): # log the call origin_hrn = Credential( string=valid_creds[0]).get_gid_caller().get_hrn() - self.api.logger.info("interface: %s\tmethod-name: %s\tcaller-hrn: %s\ttarget-urn: %s" % ( - self.api.interface, self.name, origin_hrn, xrn.get_urn())) + logger.info("interface: %s\tmethod-name: %s\tcaller-hrn: %s\ttarget-urn: %s" % ( + self.api.interface, self.name, origin_hrn, xrn.get_urn())) return self.api.manager.Remove(self.api, xrn)