From 1210901df0693ffacc1361300688f2eb5de669a9 Mon Sep 17 00:00:00 2001 From: Frank Sweetser Date: Fri, 4 Jun 2010 10:33:42 -0400 Subject: [PATCH] Change puppetrun output to flash message --- app/controllers/hosts_controller.rb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/hosts_controller.rb b/app/controllers/hosts_controller.rb index df5c915..5a29f0f 100644 --- a/app/controllers/hosts_controller.rb +++ b/app/controllers/hosts_controller.rb @@ -139,10 +139,11 @@ class HostsController < ApplicationController 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.6.6.1