We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. Objects fetched by SearchIndex.FindByInventoryPath does not have inventory path.
SearchIndex.FindByInventoryPath
si := object.NewSearchIndex(c) obj, _ := si.FindByInventoryPath(ctx, "/DC0/vm/DC0_H0_VM0") vm := obj.(*object.VirtualMachine) fmt.Printf("searchIndex: %q\n", vm.InventoryPath) // searchIndex: ""
Describe the solution you'd like The returned object has the inventry path specified by arguments.
Additional context Objects returned by find.Finder has the inventory path.
find.Finder
f := find.NewFinder(c) vm, _ := f.VirtualMachine(ctx, "/DC0/vm/DC0_H0_VM0") fmt.Printf("finder: %q\n", vm.InventoryPath) // finder: "/DC0/vm/DC0_H0_VM0"
The text was updated successfully, but these errors were encountered:
api: set inventory path in SearchIndex.FindByInventoryPath
25865e5
Closes: vmware#3095 Signed-off-by: syuparn <s.hello.spagetti@gmail.com>
afd45d6
Closes: #3095 Signed-off-by: syuparn <s.hello.spagetti@gmail.com>
87062a5
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Objects fetched by
SearchIndex.FindByInventoryPath
does not have inventory path.Describe the solution you'd like
The returned object has the inventry path specified by arguments.
Additional context
Objects returned by
find.Finder
has the inventory path.The text was updated successfully, but these errors were encountered: