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:
parent
996be92e96
commit
7b4598452b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user