Skip to content

Commit

Permalink
Exception handling in vmware_inventory for vcsim (ansible#32700)
Browse files Browse the repository at this point in the history
* vmware_inventory changes to support vcsim
* updated debug message per maintainer request
  • Loading branch information
gamuniz authored and jctanner committed Nov 13, 2017
1 parent c9e6da3 commit 10866bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/inventory/vmware_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def _get_instances(self, inkwargs):
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

Expand Down

0 comments on commit 10866bf

Please sign in to comment.