From 45338f7871090811a83ee4eb1f4d9c5de588200c Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Sun, 22 Nov 2009 09:56:13 +0000 Subject: [PATCH] call traceability for get_slices method --- sfa/methods/get_slices.py | 2 +- sfa/plc/slices.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sfa/methods/get_slices.py b/sfa/methods/get_slices.py index 5a12c92d..b50d7e3c 100644 --- a/sfa/methods/get_slices.py +++ b/sfa/methods/get_slices.py @@ -36,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'] diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 29213a92..a3420560 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -214,7 +214,8 @@ class Slices(SimpleStorage): success = False # request hash is optional so lets try the call without it try: - slices = aggregates[aggregate].get_slices(credential) + request_hash=None + slices = aggregates[aggregate].get_slices(credential, request_hash, self.caller_cred) slice_hrns.extend(slices) success = True except: @@ -226,7 +227,7 @@ class Slices(SimpleStorage): arg_list = [credential] request_hash = self.api.key.compute_hash(arg_list) try: - slices = aggregates[aggregate].get_slices(credential, request_hash) + slices = aggregates[aggregate].get_slices(credential, request_hash, self.caller_cred) slice_hrns.extend(slices) success = True except: -- 2.43.0