From: Anil-Kumar Vengalil Date: Mon, 23 Nov 2009 16:25:27 +0000 (+0000) Subject: in the case of an SM-SM federation, this check will avoid looping of get_resources... X-Git-Tag: sfa-0.9-7~292 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=a52c4ab9a651247383a16423e6ac189694c16cfa in the case of an SM-SM federation, this check will avoid looping of get_resources call --- diff --git a/sfa/plc/nodes.py b/sfa/plc/nodes.py index 5c0777ae..a8e0b60c 100644 --- a/sfa/plc/nodes.py +++ b/sfa/plc/nodes.py @@ -112,6 +112,7 @@ class Nodes(SimpleStorage): rspec = RSpec() credential = self.api.getCredential() for aggregate in aggregates: + if aggregate not in [self.api.auth.client_cred.get_gid_caller().get_hrn()]: try: caller_cred = self.caller_cred # get the rspec from the aggregate