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

Allow strings containing only a variable if they're used as hash keys #280

Merged
merged 2 commits into from
Jul 11, 2014

Conversation

rodjek
Copy link
Owner

@rodjek rodjek commented Jul 11, 2014

Because Puppet's parser < 4.0 only allows strings as hash keys (quoted or unquoted).

Relevant issues

Closes #261

@rodjek rodjek added this to the 1.0.0 milestone Jul 11, 2014
rodjek pushed a commit that referenced this pull request Jul 11, 2014
Allow strings containing only a variable if they're used as hash keys
@rodjek rodjek merged commit 076e143 into master Jul 11, 2014
@rodjek rodjek deleted the variable_string_hash_keys branch July 11, 2014 20:41
@dashap
Copy link

dashap commented Oct 15, 2015

See something similar with vcsrepo: WARNING: string containing only a variable on line 24

line 24: vcsrepo { "${odbcini_path}":

If I remove double quotes:

ERROR: Syntax error (try running puppet parser validate <file>) on line 24

I had to change line 24 to:

vcsrepo {$odbcini_path}:

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.

puppet-lint should not warn "string containing only a variable" when it's used to create a hash
2 participants