1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Skip vCenter datastores not associated to any host

This commit is contained in:
Tino Vazquez 2016-07-11 18:58:22 +02:00
parent 996be92e96
commit 7b4598452b

View File

@ -591,6 +591,7 @@ class VIClient
datastores.each { |ds|
next if !ds.is_a? RbVmomi::VIM::Datastore
# Find the Cluster from which to access this ds
next if !ds.host[0]
cluster_name = ds.host[0].key.parent.name
if !dspool["DATASTORE[NAME=\"#{ds.name}\"]"] and