diff options
Diffstat (limited to 'lib/puppet/application/data_baseclass.rb')
| -rw-r--r-- | lib/puppet/application/data_baseclass.rb | 3 |
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 |
