mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
f578bafffd
commit
ec7bb10f8e
1 file changed
+2
@@ -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:
|
||||
|
||||