summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-02-16 01:16:15 -0800
committerLuke Kanies <luke@puppetlabs.com>2011-02-16 01:16:15 -0800
commit7e3a02339a660a76019bf20243a7068325f1af68 (patch)
tree38290847e1c1d9c2fc7e567536b64e871565b740 /lib/puppet
parentb3f903af34c0e27dccb1d043d84c35ea68f44830 (diff)
downloadpuppet-7e3a02339a660a76019bf20243a7068325f1af68.tar.gz
puppet-7e3a02339a660a76019bf20243a7068325f1af68.tar.xz
puppet-7e3a02339a660a76019bf20243a7068325f1af68.zip
Only printing output if there is any
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/application/data_baseclass.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application/data_baseclass.rb b/lib/puppet/application/data_baseclass.rb
index b7393f96c..15ea961dc 100644
--- a/lib/puppet/application/data_baseclass.rb
+++ b/lib/puppet/application/data_baseclass.rb
@@ -48,7 +48,7 @@ class Puppet::Application::DataBaseclass < Puppet::Application
# Call the method associated with the provided action (e.g., 'find').
result = interface.send(verb, name, *arguments)
render_method = Puppet::Network::FormatHandler.format(format).render_method
- puts result.send(render_method)
+ puts result.send(render_method) if result
end
def setup