On Fri, Mar 10, 2017, at 13:05, Poil wrote:
> Hi,
> 
> In the style guide we have $facts[::operatingsystem]
> 
> In all others documentation we have $facts['fact_name']
> 
> So which one is the good one ? Do we really need to scope inside 
> $facts[::scope] 

Easily answered:

  % puppet apply -e 'notice($facts[::operatingsystem])'
  Notice: Scope(Class[main]):

vs:

  % puppet apply -e 'notice($facts["operatingsystem"])'
  Notice: Scope(Class[main]): CentOS

the first is just wrong

-- 
R.I.Pienaar / www.devco.net / @ripienaar

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

Reply via email to