Issue #3883 has been updated by Luke Kanies.

This should be extended to include all indirected data types.  Here's the 
current status:

Puppet::Node::Facts: to_json: true; from_json: true
Puppet::Node::Inventory: to_json: true; from_json: false
Puppet::Node: to_json: true; from_json: false
Puppet::Transaction::Report: to_json: true; from_json: false
Puppet::Resource: to_json: true; from_json: true
Puppet::Resource::Type: to_json: true; from_json: true
Puppet::Resource::Catalog: to_json: true; from_json: true
Puppet::SSL::Key: to_json: true; from_json: false
Puppet::SSL::Certificate: to_json: true; from_json: false
Puppet::SSL::CertificateRequest: to_json: true; from_json: false
Puppet::SSL::CertificateRevocationList: to_json: true; from_json: false
Puppet::Status: to_json: true; from_json: true
Puppet::FileBucket::File: to_json: true; from_json: true

Built using this code:
<pre>
require 'puppet'
klass = Puppet::Indirector::Indirection
klass.instances.collect { |name| klass.instance(name).model || fail "no inst 
for #{name}" }.each { |klass| puts "#{klass}: to_json: 
#{klass.instance_methods.include?('to_pson')}; from_json: 
#{klass.respond_to?(:from_pson)}" }
</pre>
----------------------------------------
Bug #3883: Transaction reports and contained instances have no json support
https://projects.puppetlabs.com/issues/3883

Author: Luke Kanies
Status: Accepted
Priority: High
Assignee: 
Category: reports
Target version: 
Affected Puppet version: 0.25.4
Keywords: 
Branch: 


We are still sending transaction reports over as yaml rather than json, and in 
fact, none of Transaction::Report, Transaction::Event, or Resource::Status 
support json.

I'm not sure how big of a deal this is, since we normally just store them as 
yaml anyway, but my inclination is that this is actually a pretty big deal, so 
I'm setting this to high unless someone says otherwise.


-- 
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.

Reply via email to