From: Tony Mack Date: Fri, 23 Oct 2009 14:45:56 +0000 (+0000) Subject: pass request_hash argument to sfa interface calls X-Git-Tag: sfa-0.9-6~142 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c73cc2f145cdb2e401ec945a7411c6517572270;p=sfa.git pass request_hash argument to sfa interface calls --- 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')}])