Sha256: efac21d2e0e287f53aa4bb7e81a97def8bfae1b657da91900b54dc71388c1398

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

module ForemanBootdisk::UnattendedControllerExt
  def find_host_by_ip_or_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?
    super
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_bootdisk-11.0.0 app/controllers/concerns/foreman_bootdisk/unattended_controller_ext.rb
foreman_bootdisk-10.0.0 app/controllers/concerns/foreman_bootdisk/unattended_controller_ext.rb