From: Tony Mack Date: Tue, 24 Mar 2009 13:59:50 +0000 (+0000) Subject: skip aggregates with incomplete connection info X-Git-Tag: sfa-0.9-0@14641~548 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=47dbc61cfd6f35ddc0173084786ddc0042ba8dfb;p=sfa.git skip aggregates with incomplete connection info --- diff --git a/geni/slicemgr.py b/geni/slicemgr.py index 7732c9b2..5b8a43a5 100644 --- a/geni/slicemgr.py +++ b/geni/slicemgr.py @@ -130,6 +130,8 @@ class SliceMgr(GeniServer): for aggregate in aggregates: # create xmlrpc connection using GeniClient hrn, address, port = aggregate['hrn'], aggregate['addr'], aggregate['port'] + if not hrn or not address or not port: + continue url = 'http://%(address)s:%(port)s' % locals() self.aggregates[hrn] = GeniClient(url, self.key_file, self.cert_file)