On 2015-20-03 21:45, Wil Cooley wrote:
PUP-3863 claims to be for future-parser with versions 3.7.3 & .4, but
I'm seeing it with both 2.7.25 and 3.7.4, both with hiera 1.3.4 (and,
for 2.7, hiera-puppet 1.0.0). Should I not be surprised? Is there
another ticket that I'm missing maybe?

The crux of the issue for me, aside from the verity of the result
changing with Puppet 4, is that undef != '' as resource parameters. For
example, I expect the following to work, regardless of the status of the
`hiera` lookup:

   file { '/tmp/foo':
     source => hiera('xyzzy', undef),
   }

But what I'm seeing is that when 'xyzzy' is not found, `hiera` returns
"", which is not a valid source URL.

That is because an undef is passed as an empty string when given to functions (functions in general are still 3.x. API when using future parser, and also in 4.0).

We have however recently reimplemented the hira functions using the 4.x API to be able to pass and return undef (among other things). Please test this with 3.7.5 and future parser when it becomes available (or test the 4.0.0 release candidate)

- henrik

--
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAMmm3r5rBXmKDYOMWbDse7Q69yYj%3Dq177XHpHmXCyuq_-j1KyQ%40mail.gmail.com
<https://groups.google.com/d/msgid/puppet-users/CAMmm3r5rBXmKDYOMWbDse7Q69yYj%3Dq177XHpHmXCyuq_-j1KyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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/memp71%24pul%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to