app/models/miq_host_provision_workflow.rb
#
# Methods for populating lists of allowed values for a field
# => Input  - A hash containing options specific to the called method
# => Output - A hash with the format: <value> => <value display name>
# => New methods can be added as as needed
#
Methods for populating lists of allowed values for a field
> Input  - A hash containing options specific to the called method
> Output - A hash with the format:  => 
> New methods can be added as as needed
Methods for populating lists of allowed values for a field > Input - A hash containing options specific to the called method > Output - A hash with the format : = > > New methods can be added as as needed
def allowed_hosts(_options = {})
    return @allowed_hosts_cache unless @allowed_hosts_cache.nil?
    rails_logger('allowed_hosts', 0)
    host_ids = @values[:src_host_ids]
    hosts = Host.where(:id => host_ids)
    @allowed_hosts_cache  = hosts.collect do |h|
      build_ci_hash_struct(h, [:name, :guid, :uid_ems, :ipmi_address, :mac_address])
    end
    @allowed_hosts_cache
  end
def allowed_hosts ( _options = { } ) return @allowed_hosts_cache unless @allowed_hosts_cache . nil? rails_logger ( 'allowed_hosts' , 0 ) host_ids = @values [ :src_host_ids ] hosts = Host . where ( :id => host_ids ) @allowed_hosts_cache = hosts . collect do | h | build_ci_hash_struct ( h , [ :name , :guid , :uid_ems , :ipmi_address , :mac_address ] ) end @allowed_hosts_cache end
Methods for populating lists of allowed values for a field
> Input  - A hash containing options specific to the called method
> Output - A hash with the format: <value> => <value display name>
> New methods can be added as as needed
Methods for populating lists of allowed values for a field > Input - A hash containing options specific to the called method > Output - A hash with the format : <value > = > <value display name > > New methods can be added as as needed
_options
<not_specific>