summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-11 11:26:25 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-12 16:12:08 -0700
commit26db6456d22b95486646ae5b8b001acb2051c4da (patch)
tree896ba9ef8df8c7e3a3147ff214feeae79eabef21 /lib/puppet
parent36021021b4cb11aea0a5acd35d051db52d8fc99f (diff)
downloadpuppet-26db6456d22b95486646ae5b8b001acb2051c4da.tar.gz
puppet-26db6456d22b95486646ae5b8b001acb2051c4da.tar.xz
puppet-26db6456d22b95486646ae5b8b001acb2051c4da.zip
(#6962) render prints the rval; fix help subcommand.
The face application base uses render to transform the returned object to a form where #to_s produces the output intended for the end user; we were actually printing in the method instead, leading to an extraneous 'nil' at the end of the output... Paired-With: Matt Robinson <matt@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/application/help.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application/help.rb b/lib/puppet/application/help.rb
index 69905af27..b3666f12d 100644
--- a/lib/puppet/application/help.rb
+++ b/lib/puppet/application/help.rb
@@ -2,6 +2,6 @@ require 'puppet/application/faces_base'
class Puppet::Application::Help < Puppet::Application::FacesBase
def render(result)
- puts result.join("\n")
+ result.join("\n")
end
end