Revision 5d264a2d
Added by Ohad Levy over 12 years ago
- ID 5d264a2db100fd1ba7c505697076c4072698b094
app/controllers/facts_controller.rb | ||
---|---|---|
# we currently only support JSON in this controller
|
||
return not_found unless api_request?
|
||
|
||
render :json => Puppet::Rails::FactName.all(:select => "name", :conditions => ["fact_names.name <> ?",:timestamp])
|
||
render :json => FactName.no_timestamp_fact
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
refactor - various facts cleanups