0001-Change-puppetrun-output-to-flash-message.patch
| b/app/controllers/hosts_controller.rb | ||
|---|---|---|
| 139 | 139 |
def puppetrun |
| 140 | 140 |
host = Host.find params[:id] |
| 141 | 141 |
if GW::Puppet.run host.name |
| 142 |
render :text => "Successfully executed, check log files for more details" |
|
| 142 |
flash[:foreman_notice] = "Successfully executed, check log files for more details" |
|
| 143 | 143 |
else |
| 144 |
render :text => "Failed, check log files" |
|
| 144 |
flash[:foreman_error] = "Failed, check log files" |
|
| 145 | 145 |
end |
| 146 |
redirect_to :back |
|
| 146 | 147 |
end |
| 147 | 148 | |
| 148 | 149 |
def setBuild |
| 149 |
- |
|
