Fix XendNode when no host state is saved.
authorEwan Mellor <ewan@xensource.com>
Tue, 30 Jan 2007 16:55:51 +0000 (16:55 +0000)
committerEwan Mellor <ewan@xensource.com>
Tue, 30 Jan 2007 16:55:51 +0000 (16:55 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendNode.py

index e5d505285886c7a851ada7fbf57faa0e5c901422..294959752b5e742fbef9d4a1d604283a750e7073 100644 (file)
@@ -74,6 +74,7 @@ class XendNode:
             self.desc = ''
             self.other_config = {}
             self.cpus = {}
+            self.host_metrics_uuid = uuid.createString()
             
         # load CPU UUIDs
         saved_cpus = self.state_store.load_state('cpu')