ia64/xen-unstable

changeset 7161:a73ab0ddf990

Call refresh in the domain_lookup and domain_lookup_by_name methods. This
should reduce the incidence of stale domain information being used by xend, but
is only a stop-gap.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Sun Oct 02 18:21:01 2005 +0100 (2005-10-02)
parents 486f1c3e7805
children 70d5bfbf23d4
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Sun Oct 02 18:17:26 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Sun Oct 02 18:21:01 2005 +0100
     1.3 @@ -271,9 +271,11 @@ class XendDomain:
     1.4  
     1.5  
     1.6      def domain_lookup(self, id):
     1.7 +        self.refresh()
     1.8          return self.domains.get(id)
     1.9  
    1.10      def domain_lookup_by_name(self, name):
    1.11 +        self.refresh()
    1.12          dominfo = self.domains.get_by_name(name)
    1.13          if not dominfo:
    1.14              try: