Skip to content
Snippets Groups Projects
Verified Commit d4d047f0 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Always filter out disabled images

parent 85f033d5
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
<%-
host = @host || f.object.host
server = host.public_send(:wds_server) rescue nil
images = server.all_images rescue []
images = images.select { |img| img.matches_architecture?(host.architecture) && img.enabled } if host.architecture
images = (server.all_images rescue []).select(&:enabled)
images = images.select { |img| img.matches_architecture?(host.architecture) } if host.architecture
boot_images = images.select { |img| img.is_a?(ForemanWds::WdsBootImage) }
install_images = images.select { |img| img.is_a?(ForemanWds::WdsInstallImage) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment