define default connection dict
authorTony Mack <tmack@cs.princeton.edu>
Fri, 20 Mar 2009 01:29:00 +0000 (01:29 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 20 Mar 2009 01:29:00 +0000 (01:29 +0000)
geni/slicemgr.py

index 8584043..7732c9b 100644 (file)
@@ -51,7 +51,8 @@ class SliceMgr(GeniServer):
         
         # 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)