X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fnodes.py;h=c057a625ddfb7ac7807679b32b8e0bbe994514e2;hb=29d9f3fea7b205e52c235daea87ed5bfbf36e94d;hp=3fb3e98435adde78f19b69db84ae177f987595b9;hpb=49061aaff430deba3a45e522fb9e1ea4a154044b;p=sfa.git diff --git a/sfa/plc/nodes.py b/sfa/plc/nodes.py index 3fb3e984..c057a625 100644 --- a/sfa/plc/nodes.py +++ b/sfa/plc/nodes.py @@ -114,11 +114,13 @@ class Nodes(SimpleStorage): for aggregate in aggregates: try: caller_cred = self.caller_cred - 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(credential, hrn, request_hash, caller_cred) + try: + agg_rspec = aggregates[aggregate].get_resources(credential, hrn, caller_cred) + except: + arg_list = [credential, hrn] + request_hash = self.api.key.compute_hash(arg_list) + 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')}])