skip registries with incomplete connection info
authorTony Mack <tmack@cs.princeton.edu>
Tue, 24 Mar 2009 14:00:42 +0000 (14:00 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 24 Mar 2009 14:00:42 +0000 (14:00 +0000)
geni/registry.py

index b5fb908..eb7e599 100644 (file)
@@ -200,6 +200,8 @@ class Registry(GeniServer):
         if isinstance(registries, list):
             for registry in registries:
                 # create xmlrpc connection using GeniClient
+                if not hrn or not address or not port:
+                    continue
                 hrn, address, port = registry['hrn'], registry['addr'], registry['port']
                 url = 'http://%(address)s:%(port)s' % locals()
                 self.registries[hrn] = GeniClient(url, self.key_file, self.cert_file)