src/vsphere_cpi/lib/cloud/vsphere/storage_list.rb
def datastore_clusters
      clusters_hash = storage_list.find do |entry|
        Hash.try_convert(entry)&.key?('clusters')
      end
      return [] if clusters_hash.nil?
      clusters = clusters_hash['clusters']
      clusters.map do |cluster|
        Resources::StoragePod.find_storage_pod(cluster.keys.first, datacenter.mob)
      end
    end
#Returns list of StoragePod objects for datastore_clusters
Returns list of StoragePod objects for datastore_clusters
Returns list of StoragePod objects for datastore_clusters
def datastore_clusters
      clusters_hash = storage_list.find do |entry|
        Hash.try_convert(entry)&.key?('clusters')
      end
      return [] if clusters_hash.nil?
      clusters = clusters_hash['clusters']
      clusters.map do |cluster|
        Resources::StoragePod.find_storage_pod(cluster.keys.first, datacenter.mob)
      end
    end
def datastore_clusters clusters_hash = storage_list . find do | entry | Hash . try_convert ( entry ) &. key? ( 'clusters' ) end return [ ] if clusters_hash . nil? clusters = clusters_hash [ 'clusters' ] clusters . map do | cluster | Resources :: StoragePod . find_storage_pod ( cluster . keys . first , datacenter . mob ) end end
Returns list of StoragePod objects for datastore_clusters
Returns list of StoragePod objects for datastore_clusters