Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Folder create on #traverse only creates Parent (not recursive?) #110

Description

@Brunzer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions