commit a1f06d4742d1ba7c9598351f96cdc080f5dd9a8e
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Thu Mar 13 10:14:25 2014 +0100
vsphere: filter out hosts that don't have uuid
vsphere.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vsphere.py b/vsphere.py
index 5fbede2..20febd4 100644
--- a/vsphere.py
+++ b/vsphere.py
@@ -289,6 +289,9 @@ class VSphere:
mapping = {}
for cluster in self.clusters.values():
for host in cluster.hosts:
+ if host.uuid is None:
+ # Filter out hosts without uuid
+ continue
l = []
for vm in host.vms:
# Stopped machine doesn't have any uuid
Show replies by date