diff options
| author | Oliver Hookins <ohookins@gmail.com> | 2011-05-02 22:15:21 +0200 |
|---|---|---|
| committer | Max Martin <max@puppetlabs.com> | 2011-05-13 14:45:15 -0700 |
| commit | 8b76be30cc1b015d17c5596c3d1b2be86572f9b8 (patch) | |
| tree | 74363cc166b49590547be5683ccbd77373dd3294 /lib | |
| parent | 1f438da968e1583d900903407c2e5b17648fa937 (diff) | |
| download | puppet-8b76be30cc1b015d17c5596c3d1b2be86572f9b8.tar.gz puppet-8b76be30cc1b015d17c5596c3d1b2be86572f9b8.tar.xz puppet-8b76be30cc1b015d17c5596c3d1b2be86572f9b8.zip | |
(#3836) External nodes should only capture stdout
This patch prevents stdout and stderr from being combined by Puppet::Util.execute, when used by Puppet::Indirector::Exec for external nodes.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/indirector/exec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/indirector/exec.rb b/lib/puppet/indirector/exec.rb index 4683eda0f..8ea13ff95 100644 --- a/lib/puppet/indirector/exec.rb +++ b/lib/puppet/indirector/exec.rb @@ -16,8 +16,8 @@ class Puppet::Indirector::Exec < Puppet::Indirector::Terminus private # Proxy the execution, so it's easier to test. - def execute(command) - Puppet::Util.execute(command) + def execute(command, arguments) + Puppet::Util.execute(command,arguments) end # Call the external command and see if it returns our output. @@ -33,7 +33,7 @@ class Puppet::Indirector::Exec < Puppet::Indirector::Terminus # Add our name to it. external_command << name begin - output = execute(external_command) + output = execute(external_command, :combine => false) rescue Puppet::ExecutionFailure => detail raise Puppet::Error, "Failed to find #{name} via exec: #{detail}" end |
