-
Notifications
You must be signed in to change notification settings - Fork 914
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
finder.HostSystem doesn't seem to be returning the correct host #192
Comments
Interestingly enough host.bats pass for me. Looking at the tests, it seem that -host is actually expecting an inventory path, which is why host.bats passes without issues.
This seems counterintuitive that we have to supply finder with a path in order to find the thing we're looking for. Perhaps I'm wrong on this, but this doesn't seem to behave the same way as it did for finder.Datacenter. |
PR submitted. recurser.Recurse was matching the ComputeResource in the hostFolder, not the HostSystem child of the ComputeResource. |
Issue #192: HostSystem doesn't seem to be returning the correct host.
Fixed in PR #195 |
I first noticed this when I was using the finder.HostSystem function for my project that's consuming govmomi. I thought it was me, but now I'm not so sure about that given the following output.
finder.HostSystem is actually not used all that much in the code. In fact, after grepping a bit, the only place I found it was in flags/host_system.go. I'll have to dig in a little more, but I suspect this is something I'll have to fix to address the AddStandaloneHost and Destroy host issue I filed yesterday. In the event that I'm off base on this I'm happy to be corrected in order to save myself the time and trouble. :-D
The text was updated successfully, but these errors were encountered: