aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoremellor@ewan <emellor@ewan>2005-10-02 18:21:01 +0100
committeremellor@ewan <emellor@ewan>2005-10-02 18:21:01 +0100
commitec7bb10f8e8e4a8c36573e96d53cdab397f633f1 (patch)
tree4abea64b9da916714e5bfd9be67375a6ed15f6ff /tools
parentf578bafffd551b29ca44962d9f1628d04890db72 (diff)
downloadxen-ec7bb10f8e8e4a8c36573e96d53cdab397f633f1.tar.gz
xen-ec7bb10f8e8e4a8c36573e96d53cdab397f633f1.tar.bz2
xen-ec7bb10f8e8e4a8c36573e96d53cdab397f633f1.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendDomain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py
index 110d531070..1d5ebce231 100644
--- a/tools/python/xen/xend/XendDomain.py
+++ b/tools/python/xen/xend/XendDomain.py
@@ -271,9 +271,11 @@ class XendDomain:
def domain_lookup(self, id):
+ self.refresh()
return self.domains.get(id)
def domain_lookup_by_name(self, name):
+ self.refresh()
dominfo = self.domains.get_by_name(name)
if not dominfo:
try: