When enumerating VMs resident on a host (Host.get_resident_VMs RPC), ensure VMs with same UUID only appear once in the list.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
jfehlig@jfehlig2.provo.novell.com committed 2006-12-11 13:07:20 -07:00
1 parent 379e2ea7a9
commit 336be6552e
1 file changed
+3 -1
+3 -1
View File
@@ -591,7 +591,9 @@ class XendDomain:
try:
self.domains_lock.acquire()
result = [d.get_uuid() for d in self.domains.values()]
result += self.managed_domains.keys()
for d in self.managed_domains.keys():
if d not in result:
result.append(d)
return result
finally:
self.domains_lock.release()
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.