Issue #7315 has been updated by Daniel Pittman. Status changed from Unreviewed to Available In Testing Branch Assignee set to Daniel Pittman Target version set to Statler
https://github.com/puppetlabs/puppet/compare/a71bfa1...d4df6cc merges this into 2.7.x ---------------------------------------- Bug #7315: `Puppet::Status` can't render as JSON https://projects.puppetlabs.com/issues/7315 Author: Daniel Pittman Status: Available In Testing Branch Priority: Normal Assignee: Daniel Pittman Category: Faces Target version: Statler Affected Puppet version: 2.7.0rc1 Keywords: Branch: <pre>⚡ puppet status find dummy --render-as json --trace /Users/daniel/puppetlabs/puppet/lib/puppet/external/pson/common.rb:246:in `to_pson' /Users/daniel/puppetlabs/puppet/lib/puppet/external/pson/common.rb:246:in `pretty_generate' /Users/daniel/puppetlabs/puppet/lib/puppet/application/face_base.rb:55:in `render' /Users/daniel/puppetlabs/puppet/lib/puppet/application/face_base.rb:252:in `main' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:315:in `run_command' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:307:in `run' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:411:in `hook' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:307:in `run' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:402:in `exit_on_fail' /Users/daniel/puppetlabs/puppet/lib/puppet/application.rb:307:in `run' /Users/daniel/puppetlabs/puppet/lib/puppet/util/command_line.rb:62:in `execute' /Users/daniel/puppetlabs/puppet/bin/puppet:4 err: puppet status find: 1 argument expected but 0 given err: Try 'puppet help status find' for usage</pre> The root of this is an improper `to_pson` method on the object; it needs to take an argument, but doesn't, so you can't render JSON from the status object. This was made visible when faces provided the ability to easily ask for a PSON rendering of the status object. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
