Move dom0 setup code out of initial_refresh.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-16 20:03:57 +00:00
1 parent 1bc5147c84
commit 9b707eca60
1 file changed
+2
+2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.