-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
class with "apply" attribute causes parser error #251
Comments
If you set |
👍 I just hit this as well using |
Most of icinga2 resources are using the |
I've modified unit tests to catch this issue with scoiatael@56f826b but looks like the stacktrace points to puppet parser internals:
so I'm not sure if this issue shouldn't be opened against puppet itself. |
tested pathname is not the same pattern, so the regex fails. Do you have suggestions @scotje? Fixes puppetlabs#251
The tests fail because the tested pathname is not the same pattern, so the regex fails. Do you have suggestions @scotje? Fixes puppetlabs#251
The code certainly runs fine, if that matters. |
Also reported in https://tickets.puppetlabs.com/browse/PUP-10824 |
Describe the Bug
On a manifest that contains the following code:
The puppet strings parser errors out with
If the specific line with
apply =>
gets commented out, the parser succeeds.Expected Behavior
The strings parser should not handle occurrences of the term
apply
as a special case, if they are attributes of classes.Steps to Reproduce
Steps to reproduce the behavior:
apply
puppet parser validate
to confirm the manifest is validpuppet strings generate
apply
attribute.Environment
The text was updated successfully, but these errors were encountered: