Closed estonfer closed 12 years ago
This allows for the use of the inventory method in this fashion
VIM = RbVmomi::VIM vim = VIM.connect opts dc=vim.serviceInstance.find_datacenter('MyDC') inventory = dc.vmFolder.inventory( 'VirtualMachine' => :all )
otherwise this method returns an error about assigning an array to a NilClass.
fair enough I'll patch it up with a try and catch instead to avoid the use of the chain_hash function.
This allows for the use of the inventory method in this fashion
VIM = RbVmomi::VIM vim = VIM.connect opts dc=vim.serviceInstance.find_datacenter('MyDC') inventory = dc.vmFolder.inventory( 'VirtualMachine' => :all )
otherwise this method returns an error about assigning an array to a NilClass.