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

Parsing error with array of resources #273

Closed PierreR closed 5 years ago

PierreR commented 5 years ago

https://github.com/puppetlabs/puppetlabs-docker/blob/master/manifests/run.pp#L516

puppetresources is failing to parse the line with this error:

cannot parse ./modules/docker/manifests/run.pp:519:11:
    |
519 |           [File[$initscript]] ~> Service<| title == "${service_prefix}${sanitised_title}" |>
    |           ^
unexpected '['
expecting '}'

puppetlabs-docker is a PDK supported puppetlabs module that we use a lot.

bartavelle commented 5 years ago

I pushed something that should make it parse, but it might have broken the resource chaining code

PierreR commented 5 years ago

Thanks! Seems to work. I will open an new issue if I encounter problems with resouce chaining code