From 5c73cc2f145cdb2e401ec945a7411c6517572270 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 23 Oct 2009 14:45:56 +0000 Subject: [PATCH] pass request_hash argument to sfa interface calls --- sfa/plc/nodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sfa/plc/nodes.py b/sfa/plc/nodes.py index e4458d33..29668b72 100644 --- a/sfa/plc/nodes.py +++ b/sfa/plc/nodes.py @@ -114,12 +114,11 @@ class Nodes(SimpleStorage): for aggregate in aggregates: try: caller_cred = self.caller_cred - cred_str = credential.save_to_string(save_parents=True) - arg_list = [cred_str, hrn] + arg_list = [credential, hrn] request_hash = self.api.key.compute_hash(arg_list) # get the rspec from the aggregate - agg_rspec = aggregates[aggregate].get_resources(cred_str, hrn, request_hash, caller_cred) + agg_rspec = aggregates[aggregate].get_resources(credential, hrn, request_hash, caller_cred) # extract the netspec from each aggregates rspec rspec.parseString(agg_rspec) networks.extend([{'NetSpec': rspec.getDictsByTagName('NetSpec')}]) -- 2.47.0