app/controllers/katello/api/v2/host_debs_controller.rb in katello-3.18.0.rc1 vs app/controllers/katello/api/v2/host_debs_controller.rb in katello-3.18.0.rc2
- old
+ new
@@ -27,8 +27,9 @@
private
def find_host
@host = resource_finder(::Host::Managed.authorized(:view_hosts, ::Host::Managed), params[:host_id])
+ throw_resource_not_found(name: 'host', id: params[:host_id]) if @host.nil?
end
end
end