Closed TJM closed 7 years ago
It is fairly simple to workaround the issue by putting the values in "quote" in hieradata, but it should accept the integers directly. Perhaps a better way to handle this would be to make the default value "undef" then check to see if its defined? Puppet itself is fairly loose about converting strings to integers, but apparently not the other way around. Probably because in ruby 123.empty?
is NoMethodError.
Sorry, somehow missed the issue. I remember seeing some issue with empty() and ints but don't remember if it was an issue in the stdlib or with Puppet 4. Will have a look at it.
I've released version 4.0.0 to the forge which fixes a very similar issue for Puppet 4. Can you try again, please?
Timeout, please reopen if this is still a problem.
I got the following error...
Error:
Puppet Code:
HieraData:
Puppet Open Source v 3.8.1 ├── puppetlabs-stdlib (v4.9.0)
So... It would appear that empty() doesn't like integers?
For what its worth, it would be nice if the duplicity init did this so that I wouldn't have to implement this wrapper at all ;)
~tommy