Issue #4561 has been updated by Erik Dalén.

eric sorenson wrote:
> I've written up what I think are the latest discussion as a puppet Armature 
> (enhancement proposal process); i'm particularly curious to see how watchers 
> on this bug feel about the two proposals in the "Alternatives" section: 
> 
> https://github.com/puppetlabs/armatures/blob/master/arm-5.structured_facts/structured_facts.md
> 
> Please feel free to comment on these either by forking and submitting pull 
> requests (if you want to add/change text) or raising github issues on the 
> repository if it's just commentary/questions.

It seems that proposal mostly discusses changing the namespace for facts, I 
don't really see why that is necessary for supporting this?
----------------------------------------
Feature #4561: Structured data should be supported
https://projects.puppetlabs.com/issues/4561#change-84527

Author: Luke Kanies
Status: Accepted
Priority: Normal
Assignee: 
Category: library
Target version: 2.0.0
Keywords: backlog
Branch: 
https://github.com/kbarber/facter/tree/ticket/master/4561-add_structured_data
Affected Facter version: 


Facter currently only supports a flat result list, and it should instead 
support structured data - basically, a hash of hashes and arrays.

This should probably be able to be represented in two ways - either a hash of 
hashes/arrays, or namespaces.  That is, this:
<pre>
{:top => {:middle => {:bottom => "value"}}}
</pre>
Could also be represented as:
<pre>
top::middle::bottom = value
</pre>

We could optionally have a converter that s/::/_/g for backward compatibility, 
which should be both trivial and unnecessary, but there should definitely be 
some kind of backward compatibility mode for callers who can't deal with 
structured data.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to