Sha256: 8a2b6751e9ea6e125569676cbb3e4b1bcdb25c50271df1704a668272939f95e5
Contents?: true
Size: 816 Bytes
Versions: 2
Compression:
Stored size: 816 Bytes
Contents
module Fog module Compute class Vsphere class Real def get_storage_pod(name, datacenter_name) storage_pod = list_storage_pods(datacenter: datacenter_name).detect { |pod| pod[:name] == name } raise(Fog::Compute::Vsphere::NotFound) unless storage_pod storage_pod end protected def get_raw_storage_pod(name, datacenter_name) raw_storage_pods(datacenter_name).detect { |pod| pod.name == name } end def raw_storage_pods(datacenter_name) list_container_view(datacenter_name, 'StoragePod') end end class Mock def get_storage_pod(name, datacenter_name) list_storage_pods(datacenter: datacenter_name).detect { |h| h[:name] == name } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vsphere-2.5.0 | lib/fog/vsphere/requests/compute/get_storage_pod.rb |
fog-vsphere-2.4.0 | lib/fog/vsphere/requests/compute/get_storage_pod.rb |