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

Bad value for range #801

Closed
bahner opened this issue Feb 20, 2018 · 2 comments
Closed

Bad value for range #801

bahner opened this issue Feb 20, 2018 · 2 comments
Labels
Milestone

Comments

@bahner
Copy link

bahner commented Feb 20, 2018

Puppet-lint told me to open an issue for this. I can't see myself, what is wrong here. Seems pretty simple to me.


puppet-lint version: 2.3.3
ruby version: 2.3.6-p384
platform: x86_64-linux-gnu
file path: manifests/mailman/nkk.pp
file contents:

# point puppet to config files
class profiles::mailman:nkk {

  include inonit::nkk::mailman  
  include profiles::docker::compose

}

error:

ArgumentError: bad value for range
/usr/lib/ruby/vendor_ruby/puppet-lint/data.rb:182:in `block in resource_indexes'
/usr/lib/ruby/vendor_ruby/puppet-lint/data.rb:171:in `each'
/usr/lib/ruby/vendor_ruby/puppet-lint/data.rb:171:in `resource_indexes'
/usr/lib/ruby/vendor_ruby/puppet-lint/checkplugin.rb:81:in `resource_indexes'
/usr/lib/ruby/vendor_ruby/puppet-lint/plugins/check_resources/file_mode.rb:13:in `check'
/usr/lib/ruby/vendor_ruby/puppet-lint/checkplugin.rb:21:in `run'
/usr/lib/ruby/vendor_ruby/puppet-lint/checks.rb:60:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet-lint/checks.rb:57:in `each'
/usr/lib/ruby/vendor_ruby/puppet-lint/checks.rb:57:in `run'
/usr/lib/ruby/vendor_ruby/puppet-lint.rb:196:in `run'
/usr/lib/ruby/vendor_ruby/puppet-lint/bin.rb:59:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet-lint/bin.rb:56:in `each'
/usr/lib/ruby/vendor_ruby/puppet-lint/bin.rb:56:in `run'
/usr/bin/puppet-lint:7:in `<main>'
@bahner
Copy link
Author

bahner commented Feb 20, 2018

Ah, issue was obvious when the eyes focused. A syntax error in class name - missing a colon. Closing issue as bogus. My bad.

@bahner bahner closed this as completed Feb 20, 2018
@bahner bahner reopened this Feb 20, 2018
@bahner
Copy link
Author

bahner commented Feb 20, 2018

On the other hand: puppet-lint should probably have catched this .... :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants