I'm trying to use the traverse method for folders to create a new Folder path within a DC. The top level folder gets created just fine but it doesn't follow through to create the children that I have specified.
My Code:
vim = RbVmomi::VIM.connect(host: 'some host', user: 'some user', password: 'my pass', insecure: true)
dc = vim.serviceInstance.find_datacenter('MyDataCenter') || fail('datacenter not found')
folder = dc.vmFolder.traverse!('Parent/Child', type = Object)
This code creates the "Parent" folder, but seems to ignore the "Child" folder in the path supplied.
Version of rbvmomi is 1.11.2, version of vsphere is 6.0.0