bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Hiera lookup fonction not working with integer #274

Closed PierreR closed 5 years ago

PierreR commented 5 years ago

If zookeeper:client_ip is an integer, such call zookeeper.connect: "%{lookup('zookeeper::client_ip')}:%{lookup('zookeeper::client_port')}" in a hiera file will resolve as:

zookeeper.connect=127.0.0.1:

If I add some quote where the variable zookeeper::client_port is defined I will get the right output. (unfortunately I can't do so as it will result in a type missmatch error in puppet code).

bartavelle commented 5 years ago

Also pushed something for this issue, let me know if it helps

PierreR commented 5 years ago

Works nicely. Thanks.