salt-ext-modules-vmware icon indicating copy to clipboard operation
salt-ext-modules-vmware copied to clipboard

update get_datastores to work with recursive folders

Open dhiltonp opened this issue 3 years ago • 1 comments

utils/vmware.py::get_datastore uses some fancy traversal to make finding datastores more efficient.

Unfortunately, when searching "everywhere" it doesn't search nested folders.

This should probably be made to work with nested folders. In the meantime, modules/datastore.py is using a wrapper function that gets all datastores and searches by name if nothing exists. This should work but be less efficient.

dhiltonp avatar Jan 31 '22 23:01 dhiltonp