Revision 14cd3f28
Added by Ohad Levy almost 13 years ago
- ID 14cd3f288e2075aa0a76a27de50586c54758db3f
app/controllers/lookup_keys_controller.rb | ||
---|---|---|
@value = @lookup_key.value_for(host)
|
||
|
||
respond_to do |format|
|
||
format.json { render :json => @value}
|
||
format.json { render :json => { :value => @value } }
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
updated foreman puppet module to include the smart variables puppet function
this also ensures that the json response from foreman is always in json.
refs #1029