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

The `regsubst` function should work with array #118

Closed PierreR closed 9 years ago

PierreR commented 9 years ago

According to the doc, regsubst should accept an array but:

$test = regsubst([], '[^0-9A-Za-z.\-]', '-', 'G')

Don't know how to convert this to a string:
[] at # "./modules/application/manifests/role/puppet/pgserver.pp" (line 12, column 3)
bartavelle commented 9 years ago

Fixed, although I found a new bug :(