Sha256: 451cd62915a3eb158914e1a72e7599b659ad58aa707a34b9fc954857d1af4a64

Contents?: true

Size: 414 Bytes

Versions: 11

Compression:

Stored size: 414 Bytes

Contents

module Bootdisk::UnattendedControllerExt
  extend ActiveSupport::Concern

  included do
    alias_method_chain :find_host_by_ip_or_mac, :param_mac
  end

  def find_host_by_ip_or_mac_with_param_mac
    request.env['HTTP_X_RHN_PROVISIONING_MAC_0'] = "unknown #{params['mac']}" unless request.env.has_key?('HTTP_X_RHN_PROVISIONING_MAC_0') || params['mac'].nil?
    find_host_by_ip_or_mac_without_param_mac
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_bootdisk-2.0.8 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.7 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.6 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.5 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.4 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.3 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.2 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.1 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-2.0.0 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-1.2.3 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-1.2.2 app/controllers/concerns/bootdisk/unattended_controller_ext.rb