Project

General

Profile

Bug #306 ยป 0001-Change-puppetrun-output-to-flash-message.patch

Frank Sweetser, 06/04/2010 03:36 PM

View differences:

app/controllers/hosts_controller.rb
def puppetrun
host = Host.find params[:id]
if GW::Puppet.run host.name
render :text => "Successfully executed, check log files for more details"
flash[:foreman_notice] = "Successfully executed, check log files for more details"
else
render :text => "Failed, check log files"
flash[:foreman_error] = "Failed, check log files"
end
redirect_to :back
end
def setBuild
    (1-1/1)