VMware: fix inventory plugin (#56431)

* Fixed regression introduced in #56071
* Added test to check if hostvars are populated
* Fix toml installation logic

Fixes: #56413

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-05-15 19:45:50 +05:30 committed by Gonéri Le Bouder
parent 3b08e75eb2
commit 8ce09a0057
3 changed files with 35 additions and 18 deletions

View file

@ -448,7 +448,7 @@ class InventoryModule(BaseInventoryPlugin, Cacheable):
'customValue',
]
field_mgr = []
if self.content.customFieldsManager:
if self.pyv.content.customFieldsManager:
field_mgr = self.pyv.content.customFieldsManager.field
for vm_prop in vm_properties: