mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 02:03:15 +09:00
Skip vCenter datastores not associated to any host
(cherry picked from commit 7b4598452b)
This commit is contained in:
1 parent
8851c958d7
commit
59cf350a7f
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user