Sha256: 3a9c1f7cc91e91d66d53b1434104097e0b2e36a22a4117afcc0ebf3fe7282ee9

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 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')
    find_host_by_ip_or_mac_without_param_mac
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_bootdisk-1.2.1 app/controllers/concerns/bootdisk/unattended_controller_ext.rb
foreman_bootdisk-1.2.0 app/controllers/concerns/bootdisk/unattended_controller_ext.rb