Project

General

Profile

« Previous | Next » 

Revision e8d6d2d6

Added by Shlomi Zadok over 8 years ago

fixes #4151 - enable reports STI

Permits subclassing of ReportImporter and Report to import and store
new types of reports associated to hosts.

View differences:

config/routes.rb
#ENC requests goes here
get "node/:name" => 'hosts#externalNodes', :constraints => { :name => /[^\.][\w\.-]+/ }
resources :reports, :only => [:index, :show, :destroy] do
resources :config_reports, :only => [:index, :show, :destroy] do
collection do
get 'auto_complete_search'
end
......
end
constraints(:host_id => /[^\/]+/) do
resources :reports, :only => [:index, :show]
resources :audits, :only => :index
resources :facts, :only => :index, :controller => :fact_values
resources :config_reports, :only => [:index, :show]
resources :audits, :only => :index
resources :facts, :only => :index, :controller => :fact_values
resources :puppetclasses, :only => :index
end
end

Also available in: Unified diff