mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Move dom0 setup code out of initial_refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
1bc5147c84
commit
9b707eca60
1 file changed
+2
@@ -68,6 +68,7 @@ class XendDomain:
|
||||
self.dbmap = DBMap(db=XenNode("/domain"))
|
||||
self.watchReleaseDomain()
|
||||
self.initial_refresh()
|
||||
self.dom0_setup()
|
||||
|
||||
def list(self):
|
||||
"""Get list of domain objects.
|
||||
@@ -151,6 +152,7 @@ class XendDomain:
|
||||
self._delete_domain(domid)
|
||||
self.refresh(cleanup=True)
|
||||
|
||||
def dom0_setup():
|
||||
dom0 = self.domain_lookup(0)
|
||||
if not dom0:
|
||||
dom0 = self.domain_unknown(0)
|
||||
|
||||