Skip to content
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

Include hash/array references when enclosing variables #874

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Conversation

rodjek
Copy link
Owner

@rodjek rodjek commented Sep 25, 2019

$ cat test.pp
$foo = "/path/$files['some']"

$ bin/puppet-lint -f test.pp
FIXED: variable not enclosed in {} on line 1

$ cat test.pp
$foo = "/path/${files['some']}"

Fixes #826

@rodjek rodjek added this to the 2.4.0 milestone Sep 25, 2019
@rodjek rodjek merged commit b5999d6 into master Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly wrapped hash variable inside double quotes
1 participant