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

regsubst function failure when the second param is a Pattern #295

Closed PierreR closed 10 months ago

PierreR commented 10 months ago

The following signature doesn't seem to be supported in language-puppet:

regsubst($ipaddress, /([0-9]+)/, '')

It is used here in the systemd module: https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/dropin_file.pp#L88

I have this error:

Don't know how to convert this to a string:
/\.service$/ at ./modules/systemd/manifests/dropin_file.pp:88:7
bartavelle commented 10 months ago

pushed a fix