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
This commit is contained in:
parent
b8c1321635
commit
a3321d1074
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue