Skip to content

Commit

Permalink
Fixes #14797 - remove media presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and timogoebel committed Jan 21, 2019
1 parent 1f4f7dd commit 1e24194
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions app/models/concerns/foreman_bootdisk/host_ext.rb
Expand Up @@ -36,10 +36,6 @@ def intel_arch?
/i.86|x86[_-]64/ =~ architecture.name
end

def validate_media?
super || (managed && bootdisk_build? && build?)
end

def can_be_built?
super || (managed? && SETTINGS[:unattended] && bootdisk_build? && !build?)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/foreman_bootdisk/engine.rb
Expand Up @@ -38,7 +38,7 @@ class Engine < ::Rails::Engine

initializer 'foreman_bootdisk.register_plugin', before: :finisher_hook do |_app|
Foreman::Plugin.register :foreman_bootdisk do
requires_foreman '>= 1.20'
requires_foreman '>= 1.21'

security_block :bootdisk do |_map|
permission :download_bootdisk, 'foreman_bootdisk/disks': %i[generic host full_host subnet help],
Expand Down

0 comments on commit 1e24194

Please sign in to comment.