Exception handling in vmware_inventory for vcsim (#32700)

* vmware_inventory changes to support vcsim
* updated debug message per maintainer request
pull/32838/head
gamuniz 7 years ago committed by jctanner
parent c9e6da338c
commit 10866bfb8b

@ -419,6 +419,8 @@ class VMWareInventory(object):
self.debugl('%d custom fields collected' % len(self.custom_fields)) self.debugl('%d custom fields collected' % len(self.custom_fields))
except vmodl.RuntimeFault as exc: except vmodl.RuntimeFault as exc:
self.debugl("Unable to gather custom fields due to %s" % exc.msg) 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 return instance_tuples

Loading…
Cancel
Save