Project

General

Profile

« Previous | Next » 

Revision 1d0315e0

Added by Marek Hulán over 8 years ago

Fixes #11921 - load dynamic features during runtime

View differences:

app/controllers/api/v2/hosts_controller.rb
before_filter :find_resource, :except => [:index, :create, :facts]
before_filter :permissions_check, :only => %w{power boot puppetrun}
add_smart_proxy_filters :facts, :features => FactImporter.fact_features
add_smart_proxy_filters :facts, :features => Proc.new { FactImporter.fact_features }
api :GET, "/hosts/", N_("List all hosts")
api :GET, "/hostgroups/:hostgroup_id/hosts", N_("List all hosts for a host group")

Also available in: Unified diff