skip aggregates with incomplete connection info
authorTony Mack <tmack@cs.princeton.edu>
Tue, 24 Mar 2009 13:59:50 +0000 (13:59 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 24 Mar 2009 13:59:50 +0000 (13:59 +0000)
geni/slicemgr.py

index 7732c9b..5b8a43a 100644 (file)
@@ -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)