call traceability for get_slices method
[sfa.git] / sfa / methods / get_slices.py
index 3961ac8..b50d7e3 100644 (file)
@@ -29,8 +29,6 @@ class get_slices(Method):
     returns = [Parameter(str, "Human readable slice name (hrn)")]
     
     def call(self, cred, request_hash=None, caller_cred=None):
-       import pdb
-       pdb.set_trace()
         self.api.auth.authenticateCred(cred, [cred], request_hash) 
         self.api.auth.check(cred, 'listslices')
        if caller_cred==None:
@@ -38,6 +36,6 @@ class get_slices(Method):
        
        #log the call
        self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, Credential(string=caller_cred).get_gid_caller().get_hrn(), None, self.name))
-        slices = Slices(self.api)
+        slices = Slices(self.api, caller_cred=caller_cred)
         slices.refresh()
         return slices['hrn']