OpenNebula 5.0 Beta : Import datastore Vcenter 6.0

Hi! Have problem with import datastores on OpenNebula 5.0 Beta.

root@nebula:/var/lib/one/datastores# onevcenter datastores --vcenter 10.100.10.30 --vuser administrator@test.local --vpass ************

Connecting to vCenter: test.local…done!

Looking for Datastores…error: undefined method `host’ for #< RbVmomi::VIM::Folder:0x00000002af5788 >

root@nebula:/var/lib/one/datastores#

Hi! Thanks a lot for your feedback on the Beta.

I believe you hit a bug in OpenNebula when dealing with datastores nested within folders.

Please replace /usr/lib/one/ruby/vcenter_driver.rb with the follwing file and try again:

https://gist.github.com/fb729827dcb53df43f369723ee1593cc