vmware_inventory.py: skip_keys can use a full key path (#20389)

use inkey attribute in _process_object_types recursive loop to generate key name in skip_keys directive.

This permit to ignore nested variables, for example summary.vm to optimize inventory collect
pull/20401/head
Loïc Blot 8 years ago committed by John R Barker
parent b8c1321635
commit a3321d1074

@ -669,7 +669,7 @@ class VMWareInventory(object):
methods = dir(vobj)
methods = [str(x) for x in methods if not x.startswith('_')]
methods = [x for x in methods if x not in self.bad_types]
methods = [x for x in methods if not x.lower() in self.skip_keys]
methods = [x for x in methods if not inkey + '.' + x.lower() in self.skip_keys]
methods = sorted(methods)
for method in methods:

Loading…
Cancel
Save