-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puppet-lint crash with new puppet 4 syntax #516
Comments
Tracked this down to adding the delimeter parameter to the |
It has to do with the double quotes inside the double quoted string.
This I believe is a strangely allowed format, because of the interpolation of |
I am not sure how we would properly find that. The first double quote should be the end of the string, after all. If you wanted to figure out a way to account for this, I believe it would involve |
Thanks to Henrik, found the puppet lexer does this with |
Just a side note on temporary workarounds, whilst changing the quotes works fine for some strings if you're trying to insert a line break you need double quotes, in this case you can define it as a variable and use that instead: $join_str = "\n"
postfix::hash { '/etc/postfix/virtual':
content => "${ $virtual.join($join_str) }\n",
} |
Test case:
running
puppet-lint test.pp
Results in
Puppet will properly parse this and execute it with expected behavior
The text was updated successfully, but these errors were encountered: