[XEND] Only use DevController to generate SXP for running domains.
authorAlastair Tse <atse@xensource.com>
Thu, 4 Jan 2007 16:21:12 +0000 (16:21 +0000)
committerAlastair Tse <atse@xensource.com>
Thu, 4 Jan 2007 16:21:12 +0000 (16:21 +0000)
Otherwise the previous patch breaks managed domains in xm list.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py

index d8bb63494c1d1e58f56f8571972b3a2a8d1ef30e..92af7b4239f4bf20ed0ada24aafec041ac296e51 100644 (file)
@@ -859,7 +859,7 @@ class XendConfig(dict):
                 found = False
                 
                 # figure if there is a dev controller is valid and running
-                if domain:
+                if domain and domain.getDomid():
                     try:
                         controller = domain.getDeviceController(cls)
                         configs = controller.configurations()