Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

govmomi.Folder.Children cannot handle StoragePods, ClusterComputeResources, and VmwareDistributedVirtualSwitch #119

Closed
jmmcatee opened this issue Sep 17, 2014 · 3 comments

Comments

@jmmcatee
Copy link

It looks like govmomi.Folder.Children() does not support some types.

  • StoragePod
  • ClusterComputeResource
  • VmwareDistributedVirtualSwitch
@arodd
Copy link

arodd commented Sep 19, 2014

I also ran into similar issues, I was assuming I was just using the language incorrectly. The goroutine panics if any children in that folder are of the above types.

panic: Unknown managed entity: ClusterComputeResource

goroutine 1 [running]:
runtime.panic(0x852bc0, 0xc2101aed20)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/vmware/govmomi.newReference(0xc2101aff20, 0x16, 0xc2101ae9b0, 0xc, 0x9, ...)
    /home/aworkman/Scratch/go/src/github.com/vmware/govmomi/types.go:50 +0x2db
github.com/vmware/govmomi.Folder.Children(0xc21019f008, 0x6, 0xc210186ae0, 0x9, 0xc2100732c0, ...)
    /home/aworkman/Scratch/go/src/github.com/vmware/govmomi/folder.go:50 +0x25e
main.main()
    /home/aworkman/Scratch/go/src/local/vm_sample.go:34 +0x62a

dougm added a commit to dougm/govmomi that referenced this issue Sep 20, 2014
Folder.Children and SearchIndex.Find methods convert
types.ManagedObjectReference to govmomi package types via the
newReference method.  Adding support other types such as:
StoragePod, ClusterComputeResource, VmwareDistributedVirtualSwitch

Fixes github issue vmware#119
@arodd
Copy link

arodd commented Sep 21, 2014

Fixed! Thanks much.

@pietern
Copy link
Contributor

pietern commented Sep 21, 2014

Great, closing.

@pietern pietern closed this as completed Sep 21, 2014
tkak pushed a commit to tkak/govmomi that referenced this issue Dec 27, 2014
Folder.Children and SearchIndex.Find methods convert
types.ManagedObjectReference to govmomi package types via the
newReference method.  Adding support other types such as:
StoragePod, ClusterComputeResource, VmwareDistributedVirtualSwitch

Fixes github issue vmware#119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants