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:
emellor@ewan committed 2005-10-02 18:21:01 +01:00
1 parent f578bafffd
commit ec7bb10f8e
1 file changed
+2
+2
View File
@@ -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:
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.