[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] When enumerating VMs resident on a host (Host.get_resident_VMs RPC), ensure VMs with same UUID only appear once in the list.
# HG changeset patch # User jfehlig@xxxxxxxxxxxxxxxxxxxxxxxxx # Node ID aed5a0d88879a6982cfc49b2b80eb5f22fb51128 # Parent 10f51535cc840aa5e82d661e3e17d19f9ee3eaf2 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@xxxxxxxxxx> --- tools/python/xen/xend/XendDomain.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 10f51535cc84 -r aed5a0d88879 tools/python/xen/xend/XendDomain.py --- a/tools/python/xen/xend/XendDomain.py Tue Dec 12 15:28:23 2006 -0700 +++ b/tools/python/xen/xend/XendDomain.py Mon Dec 11 13:07:20 2006 -0700 @@ -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() _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |