[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Luke Kanies
luke at puppetlabs.com
Tue May 10 08:04:37 UTC 2011
The following commit has been merged in the experimental branch:
commit 9e124e1b3e3f3cd06db7ac58c3aefca3382cd870
Author: Luke Kanies <luke at puppetlabs.com>
Date: Thu Feb 10 14:55:23 2011 -0800
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 at puppetlabs.com>
diff --git a/lib/puppet/application/data_baseclass.rb b/lib/puppet/application/data_baseclass.rb
index e67b1b3..8da624c 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
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list