commit 49364d4fc97496cb9fa6cb7d55bd90d734a039b9
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Wed Dec 21 14:56:53 2011 +0100
Don't report Domain-0 as guest
virt.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/virt.py b/virt.py
index 349dcf2..b0684d6 100644
--- a/virt.py
+++ b/virt.py
@@ -44,6 +44,9 @@ class Virt:
# Active domains
for domainID in self.virt.listDomainsID():
domain = self.virt.lookupByID(domainID)
+ if domain.UUIDString() ==
"00000000-0000-0000-0000-000000000000":
+ # Don't send Domain-0 on xen (zeroed uuid)
+ continue
domains.append(domain)
self.logger.debug("Virtual machine found: %s: %s" %
(domain.name(), domain.UUIDString()))
Show replies by date