Hi Felix,

By default, Puppet 3 stringifies all facts. And apparently, 
"--stringify_facts false" does not work with puppet apply…


Raphaël


On Monday, March 9, 2015 at 4:13:33 PM UTC+1, Felix Frank wrote:
>
> Hi, 
>
> me I'm now utterly confused by how this (not) works in the wild. 
>
> $ bundle exec puppet apply -e 'notice $os' 
> Notice: Scope(Class[main]): {"name"=>"Debian", "family"=>"Debian", 
> "release"=>{"major"=>"jessie/sid", "full"=>"jessie/sid"}, 
> "lsb"=>{"distcodename"=>"sid", "distid"=>"Debian", 
> "distdescription"=>"Debian GNU/Linux unstable (sid)", 
> "distrelease"=>"unstable", "majdistrelease"=>"unstable"}} 
>
> OK, but 
>
> $ bundle exec puppet apply -e 'notice $os[name]' 
> Error: os is not a hash or array when accessing it with name at line 1 
> on node hypnos.mpex.net 
>
> $ bundle exec puppet apply --parser=future -e 'notice $os["name"]' 
> Error: Evaluation Error: The value 'name' cannot be converted to 
> Numeric. on node hypnos.mpex.net 
>
> This is Puppet 3.7.3. Please tell me I'm Doing It Wrong. 
>
> Thanks, 
> Felix 
>
> On 03/09/2015 03:54 PM, Johan De Wit wrote: 
> > Again , I'm loosing the fight 
> > 
> > When i split up my rspec, it works, but the demo test always fails, 
> > There is something I overlook. 
> > 
> > Maybe someone else sees my mistake ?? 
> > 
> > https://github.com/witjoh/rspec 
> > 
> > Grts 
> > 
> > Johan 
>
>

-- 
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/902db327-b5fb-4289-9123-20066c0646be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to