ia64/xen-unstable

changeset 9466:af1ff22a5633

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

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Mar 28 11:26:29 2006 +0100 (2006-03-28)
parents c0865290c071
children b427e44d0d6c
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Tue Mar 28 11:25:22 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Tue Mar 28 11:26:29 2006 +0100
     1.3 @@ -81,7 +81,8 @@ class XendDomain:
     1.4              # that we're sure that we haven't missed any releases, but inside
     1.5              # the domains_lock, as we don't want the watch to fire until after
     1.6              # the refresh call has completed.
     1.7 -            xswatch("@releaseDomain", self.onReleaseDomain)
     1.8 +            xswatch("@introduceDomain", self.onChangeDomain)
     1.9 +            xswatch("@releaseDomain",   self.onChangeDomain)
    1.10              
    1.11              self.refresh(True)
    1.12          finally:
    1.13 @@ -121,7 +122,7 @@ class XendDomain:
    1.14  
    1.15      ## private:
    1.16  
    1.17 -    def onReleaseDomain(self, _):
    1.18 +    def onChangeDomain(self, _):
    1.19          self.domains_lock.acquire()
    1.20          try:
    1.21              self.refresh()