# Get list of aggregates this sm talks to
aggregates_file = self.server_basedir + os.sep + 'aggregates.xml'
- self.aggregate_info = XmlStorage(aggregates_file, {'aggregates': {'aggregate': []}} )
+ connection_dict = {'hrn': '', 'addr': '', 'port': ''}
+ self.aggregate_info = XmlStorage(aggregates_file, {'aggregates': {'aggregate': [connection_dict]}} )
self.aggregate_info.load()
# Get cached list of nodes (rspec)
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)