Watch for @introduceDomain, for symmetry with the existing watch on

@releaseDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2006-03-28 11:26:29 +01:00
1 parent d4a55b4a44
commit 5be19e898d
1 file changed
+3 -2
+3 -2
View File
@@ -81,7 +81,8 @@ class XendDomain:
# that we're sure that we haven't missed any releases, but inside
# the domains_lock, as we don't want the watch to fire until after
# the refresh call has completed.
xswatch("@releaseDomain", self.onReleaseDomain)
xswatch("@introduceDomain", self.onChangeDomain)
xswatch("@releaseDomain", self.onChangeDomain)
self.refresh(True)
finally:
@@ -121,7 +122,7 @@ class XendDomain:
## private:
def onReleaseDomain(self, _):
def onChangeDomain(self, _):
self.domains_lock.acquire()
try:
self.refresh()
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.