On 2015-03-31 14:57, John Bollinger wrote:


On Thursday, March 26, 2015 at 8:24:30 AM UTC-5, John Bollinger wrote:


    Would someone please explain a little more about HI-14, though, and 
especially about how the change implemented to
    fix that issue actually addresses it at all?  The issue description is 
about traversing structured data in
    interpolation tokens, with an especial focus on structured fact values, but the 
"fix" seems to have been to modify
    the interpretation of /keys/.  Either I'm misunderstanding something, or 
that doesn't address the issue at all.


Kylo? Anybody? Bueller?

A key can be qualified and consist of several segments. Let's assume that the first segment is the key of some structured data. The remaining segments of the key will then navigate in that data. Example:

$ hiera user
{"name"=>"kim", "home"=>"/home/kim"}

$ hiera user.name
kim

So the key user.name, when used as an interpolation token, will lookup 'kim'.

Also, see example under the "Qualified Key Lookup" here: https://github.com/puppetlabs/hiera/blob/a008efc22f5907228d5c6f9952914b2a97bb8bf6/README.md

- thomas

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/551BFA4C.4040106%40puppetlabs.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to