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

Support for multiple node names in unquoted_node_name #324

Merged
merged 2 commits into from
Sep 22, 2014
Merged

Conversation

rodjek
Copy link
Owner

@rodjek rodjek commented Sep 22, 2014

The Puppet DSL supports multiple node names in a single block as a comma separated list however the first iteration of this check only checked the first value. This PR fixes that to find all unquoted node names in the node block.

Closes #323

@rodjek rodjek added this to the 1.1.0 milestone Sep 22, 2014
rodjek pushed a commit that referenced this pull request Sep 22, 2014
Support for multiple node names in unquoted_node_name
@rodjek rodjek merged commit fe3a7ae into master Sep 22, 2014
@rodjek rodjek deleted the issue-323 branch September 22, 2014 16:48
@jby
Copy link

jby commented Sep 29, 2014

Thanks for the fix, there's another problem now though.

It only finds, and fixes, the first defined node in the file...

node1 {
   stuff
}

node2 {
   stuff
}

In the above example puppet-lint complains about 'node1' not 'node2', and if run with --fix it will fix 'node1' but not 'node2', and it will not complain about it in subsequent runs either.

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 unqouted_node_name only checks (and fixes) first entry
2 participants