Exception handling in vmware_inventory for vcsim (#32700)

* vmware_inventory changes to support vcsim
* updated debug message per maintainer request
This commit is contained in:
gamuniz 2017-11-12 21:29:25 -05:00 committed by jctanner
parent c9e6da338c
commit 10866bfb8b

View file

@ -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