Comment 3 for bug 1884490

Revision history for this message
Pedro GuimarĂ£es (pguimaraes) wrote :

So, the interesting part here is that govc ls is returning the DC folder, while FindFolder does not find it.

I wonder if this is an issue with "finder" method:
https://github.com/juju/juju/blob/b911edb7a026e0d97c66dc0b9f15f53c71a1450d/provider/vsphere/internal/vsphereclient/client.go#L137

Or datacenter.Folders() is not returning the entire path:
https://github.com/juju/juju/blob/develop/provider/vsphere/internal/vsphereclient/client.go#L110

Maybe we should be using another method to recover DC's absolute path, such as:
https://github.com/vmware/govmomi/blob/master/find/finder.go#L162