Project

General

Profile

« Previous | Next » 

Revision c3b33536

Added by Stephen Benjamin over 9 years ago

fixes #8484 - make SmartProxyAuth concern more useful to plugins

View differences:

app/controllers/api/v2/hosts_controller.rb
before_filter :find_optional_nested_object, :except => [:facts]
before_filter :find_resource, :except => [:index, :create, :facts]
before_filter :permissions_check, :only => %w{power boot puppetrun}
add_puppetmaster_filters :facts
add_smart_proxy_filters :facts, :features => 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