From: Tony Mack Date: Fri, 16 Oct 2009 03:57:26 +0000 (+0000) Subject: added request_hash to get_slices() call X-Git-Tag: sfa-0.9-6~166 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=d19daaaa783830706e04dc1a887b95c396c15f30 added request_hash to get_slices() call --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 717a9d2a..88e29c95 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -103,9 +103,11 @@ class Slices(SimpleStorage): slice_hrns = [] aggregates = Aggregates(self.api) credential = self.api.getCredential() + arg_list = [credential] + request_hash = self.api.key.compute_hash(arg_list) for aggregate in aggregates: try: - slices = aggregates[aggregate].get_slices(credential) + slices = aggregates[aggregate].get_slices(credential, request_hash) slice_hrns.extend(slices) except: print >> log, "Error calling slices at aggregate %(aggregate)s" % locals()