Fix for crash on missing privileges, closes #21051 (#21518)

This commit is contained in:
Roman Belyakovsky 2017-02-21 14:53:40 +01:00 committed by jctanner
parent d144cf9c27
commit aa6585942e

View file

@ -628,7 +628,10 @@ class VMWareInventory(object):
elif type(vobj) in self.vimTable:
rdata = {}
for key in self.vimTable[type(vobj)]:
try:
rdata[key] = getattr(vobj, key)
except Exception as e:
self.debugl(e)
elif issubclass(type(vobj), str) or isinstance(vobj, str):
if vobj.isalnum():