Project

General

Profile

« Previous | Next » 

Revision 46338cd7

Added by Daniel Lobato Garcia over 10 years ago

fixes #3515 - API handles not found objects with 404

View differences:

app/controllers/api/v2/host_classes_controller.rb
else
@host ||= Host::Managed.find_by_name(params[:host_id])
return @host_id = @host.id if @host
render_error 'not_found', :status => :not_found and return false
not_found
end
end
end
end
end
end

Also available in: Unified diff