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

Use new key line over linenumber. #237

Merged
merged 1 commit into from
Oct 11, 2016
Merged

Conversation

traylenator
Copy link
Contributor

Fixes where you can run into the error below.

The puppet-lint deprecation

http://github.com/rodjek/puppet-lint/pull/540

has been merged into master.

According to

rodjek/puppet-lint#539

it was meant to be added at version 3 but is now merged
with 2.0.2.

Thanks @Feandil for diagnosis.

rake aborted!
KeyError: key{linenumber} not found
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in
`%'
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in
`format_message'
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:136:in
`block in report'

Fixes where you can run into  the error below.

The puppet-lint deprecation

http://github.com/rodjek/puppet-lint/pull/540

has been merged into master.

According to

rodjek/puppet-lint#539

it was meant to be added at version 3 but is now merged
with 2.0.2.

Thanks @Feandil for diagnosis.

```
rake aborted!
KeyError: key{linenumber} not found
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in
`%'
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in
`format_message'
/afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:136:in
`block in report'
```
@rski rski merged commit 5c4fea8 into voxpupuli:master Oct 11, 2016
@rski
Copy link
Member

rski commented Oct 11, 2016

I merged this because line has been present for a long time so it'll work for any version of puppet-lint >=1.0.
I wonder though, do we track the master branch of puppet-lint? Because backwards incompatible stuff could be merged at any point in preparation for the next major release.
@bastelfreak any thoughts?

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.

2 participants