summaryrefslogtreecommitdiff
path: root/contrib/inventory/vmware_inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/inventory/vmware_inventory.py')
-rwxr-xr-xcontrib/inventory/vmware_inventory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/inventory/vmware_inventory.py b/contrib/inventory/vmware_inventory.py
index 2fc0e09ffe..40643d7c25 100755
--- a/contrib/inventory/vmware_inventory.py
+++ b/contrib/inventory/vmware_inventory.py
@@ -419,6 +419,8 @@ class VMWareInventory(object):
self.debugl('%d custom fields collected' % len(self.custom_fields))
except vmodl.RuntimeFault as exc:
self.debugl("Unable to gather custom fields due to %s" % exc.msg)
+ except IndexError as exc:
+ self.debugl("Unable to gather custom fields due to %s" % exc)
return instance_tuples