Fix vmware property filter (#23228)

Fixes errors on properties that do not exist.
This commit is contained in:
rafstef 2017-04-03 21:22:58 +02:00 committed by jctanner
parent 3e1a16c574
commit 25019fe70c

View file

@ -560,7 +560,10 @@ class VMWareInventory(object):
# if the val wasn't set yet, get it from the parent
if not val:
val = getattr(vm, x)
try:
val = getattr(vm, x)
except AttributeError as e:
self.debugl(e)
else:
# in a subkey, get the subprop from the previous attrib
try: