Revision d307fc01
Added by Tomer Brisker over 7 years ago
app/controllers/smart_proxies_controller.rb | ||
---|---|---|
end
|
||
|
||
def puppet_dashboard
|
||
dashboard = Dashboard::Data.new("puppet_proxy_id = \"#{@smart_proxy.id}\"")
|
||
@hosts = dashboard.hosts
|
||
@report = dashboard.report
|
||
@latest_events = dashboard.latest_events
|
||
render :partial => 'smart_proxies/plugins/puppet_dashboard', :locals => { :dashboard => dashboard }
|
||
@data = Dashboard::Data.new("puppet_proxy_id = \"#{@smart_proxy.id}\"")
|
||
render :partial => 'smart_proxies/plugins/puppet_dashboard'
|
||
rescue Foreman::Exception => exception
|
||
process_ajax_error exception
|
||
end
|
Also available in: Unified diff
Fixes #17152 - Puppet proxy dashboard displays correctly
(cherry picked from commit 25eb1c80698eaf0b96e28eb6b76206a4ffe341ae)