added request_hash to get_slices() call
authorTony Mack <tmack@cs.princeton.edu>
Fri, 16 Oct 2009 03:57:26 +0000 (03:57 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 16 Oct 2009 03:57:26 +0000 (03:57 +0000)
sfa/plc/slices.py

index 717a9d2..88e29c9 100644 (file)
@@ -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()