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

ArgumentError: bad value for range #741

Closed
c22 opened this issue Aug 30, 2017 · 1 comment
Closed

ArgumentError: bad value for range #741

c22 opened this issue Aug 30, 2017 · 1 comment

Comments

@c22
Copy link

c22 commented Aug 30, 2017

puppet-lint seems to be having issues parsing external puppet modules listed in my Puppetfile.

puppet-lint used to handle these just fine, so it could have been a recent change.


puppet-lint version: 2.3.0
ruby version: 2.4.1-p111
platform: x86_64-darwin16
file path: Puppetfile
file contents:

forge 'forge.puppetlabs.com'

mod 'profile',
  :git => 'ssh://git@[REDACTED].git'
mod 'role',
  :git => 'ssh://git@[REDACTED].git'

error:

ArgumentError: bad value for range
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/data.rb:121:in `block in resource_indexes'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/data.rb:111:in `each'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/data.rb:111:in `resource_indexes'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/checkplugin.rb:74:in `resource_indexes'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/plugins/check_conditionals/selector_inside_resource.rb:7:in `check'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/checkplugin.rb:21:in `run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/checks.rb:58:in `block in run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/checks.rb:56:in `each'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/checks.rb:56:in `run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint.rb:191:in `run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/bin.rb:61:in `block in run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/bin.rb:58:in `each'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/lib/puppet-lint/bin.rb:58:in `run'
/Users/c22/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puppet-lint-2.3.0/bin/puppet-lint:7:in `<top (required)>'
/Users/c22/.rbenv/versions/2.4.1/bin/puppet-lint:22:in `load'
/Users/c22/.rbenv/versions/2.4.1/bin/puppet-lint:22:in `<main>'
@rodjek
Copy link
Owner

rodjek commented Aug 30, 2017

Puppetfile is a Ruby file, not a Puppet manifest and so isn't supported by puppet-lint. If you want to do style checking on it, I'd suggest using rubocop.

@rodjek rodjek closed this as completed Aug 30, 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

No branches or pull requests

2 participants