ia64/xen-unstable

changeset 13009:aed5a0d88879

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>
author jfehlig@jfehlig2.provo.novell.com
date Mon Dec 11 13:07:20 2006 -0700 (2006-12-11)
parents 10f51535cc84
children c79f9d788204
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Tue Dec 12 15:28:23 2006 -0700
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Mon Dec 11 13:07:20 2006 -0700
     1.3 @@ -591,7 +591,9 @@ class XendDomain:
     1.4          try:
     1.5              self.domains_lock.acquire()
     1.6              result = [d.get_uuid() for d in self.domains.values()]
     1.7 -            result += self.managed_domains.keys()
     1.8 +            for d in self.managed_domains.keys():
     1.9 +                if d not in result:
    1.10 +                    result.append(d)
    1.11              return result
    1.12          finally:
    1.13              self.domains_lock.release()