bosh_vsphere_cpi/lib/cloud/vsphere/resources/cluster.rb
def filter_inactive_hosts(host_properties)
        host_properties.values.
            select { |p| p["runtime.inMaintenanceMode"] != "true" }.
            collect { |p| p[:obj] }
      end
# Filters out the hosts that are in maintenance mode.
#
# @param [Hash] host_properties host properties that already fetched
#   inMaintenanceMode from vSphere.
# @return [Array<Vim::HostSystem>] list of hosts that are active
Filters out the hosts that are in maintenance mode.
Filters out the hosts that are in maintenance mode .
def filter_inactive_hosts(host_properties)
        host_properties.values.
            select { |p| p["runtime.inMaintenanceMode"] != "true" }.
            collect { |p| p[:obj] }
      end
def filter_inactive_hosts ( host_properties ) host_properties . values . select { | p | p [ "runtime.inMaintenanceMode" ] != "true" } . collect { | p | p [ :obj ] } end
Filters out the hosts that are in maintenance mode.
Filters out the hosts that are in maintenance mode .
list of hosts that are active
list of hosts that are active
Array<Vim::HostSystem>
host_properties
host_properties host properties that already fetched inMaintenanceMode from vSphere.
host_properties host properties that already fetched inMaintenanceMode from vSphere .