From 47dbc61cfd6f35ddc0173084786ddc0042ba8dfb Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 24 Mar 2009 13:59:50 +0000 Subject: [PATCH] skip aggregates with incomplete connection info --- geni/slicemgr.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.0