nailgun-mcagents: log the command being executed

Having to guess which command has failed is not that much fun.

blueprint fuel-bootstrap-on-ubuntu

Change-Id: Iff0feffa39d4fddadafe90b46f7e238cf026a52e
This commit is contained in:
Alexei Sheplyakov 2015-06-24 15:01:34 +03:00
parent d8545b5365
commit 199a9bcb0f
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ module MCollective
class Execute_shell_command < RPC::Agent
action 'execute' do
Log.debug("about to execute: #{request[:cmd]}")
reply[:exit_code] = run(
request[:cmd],
:stdout => :stdout,