summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-02-10 14:55:23 -0800
committerLuke Kanies <luke@puppetlabs.com>2011-02-10 14:55:23 -0800
commit9e124e1b3e3f3cd06db7ac58c3aefca3382cd870 (patch)
treed52836d868173836b1c9aec4c15fb64e7c0a695d /lib/puppet
parent3ffb9abd3a500f1fb3246e04f737b79d232c082d (diff)
downloadpuppet-9e124e1b3e3f3cd06db7ac58c3aefca3382cd870.tar.gz
puppet-9e124e1b3e3f3cd06db7ac58c3aefca3382cd870.tar.xz
puppet-9e124e1b3e3f3cd06db7ac58c3aefca3382cd870.zip
Fixing rendering to support arrays
This isn't 100% - it will probably only work for Yaml and JSON - but it's a good start. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/application/data_baseclass.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/application/data_baseclass.rb b/lib/puppet/application/data_baseclass.rb
index e67b1b368..8da624c60 100644
--- a/lib/puppet/application/data_baseclass.rb
+++ b/lib/puppet/application/data_baseclass.rb
@@ -47,7 +47,8 @@ class Puppet::Application::DataBaseclass < Puppet::Application
def main
# Call the method associated with the provided action (e.g., 'find').
result = interface.send(verb, name, *arguments)
- puts result.render(format)
+ render_method = Puppet::Network::FormatHandler.format(format).render_method
+ puts result.send(render_method)
end
def setup