Closed jm66 closed 8 years ago
Looks like the code doesn't validad for the existence of vm.config.hardware and when vim.VirtualApp is found the code exits.
2016-01-22 11:38:48,723 - ERROR - List volumes failed with error: 'vim.ResourceConfigSpec' object has no attribute 'hardware'
I think the following validation would be good to have within the vms loop in _list_vsphere_volumes:
vms
_list_vsphere_volumes
if isinstance(vm, vim.VirtualMachine) and hasattr(vm.config, 'hardware')
Hi @pratikvgupta could you take a look at this issue and PR? Thanks!
Looks like the code doesn't validad for the existence of vm.config.hardware and when vim.VirtualApp is found the code exits.
I think the following validation would be good to have within the
vms
loop in_list_vsphere_volumes
: