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

Correctly handle function calls inside string interpolation #638

Merged

Conversation

hanazuki
Copy link
Contributor

String interpolations ("${}") can contain a function-call expression, in which case puppet-lint misrecognizes the function name as a top-scope variable.

class test {
  "${lookup('foo::bar')}"  # lookup is a function but not a variable
}

This patch fixes #635

String interpolations ("${}") can contain a function-call expression,
in which case puppet-lint misrecognizes the function name as a top-scope variable.

```
class test {
  "${lookup('foo::bar')}"  # lookup is a function but not a variable
}
```
@rnelson0
Copy link
Collaborator

Thank you!

@rnelson0 rnelson0 merged commit 49f917e into rodjek:master Feb 22, 2017
@hanazuki hanazuki deleted the functions-inside-string-interpolations branch February 22, 2017 13:58
@rodjek rodjek modified the milestone: 2.2.0 Mar 27, 2017
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.

top-scope variable being used without an explicit namespace in a string with a lookup
3 participants