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

TypeError running on seemingly-sane puppet file #399

Closed
deltamualpha opened this issue Feb 25, 2015 · 1 comment
Closed

TypeError running on seemingly-sane puppet file #399

deltamualpha opened this issue Feb 25, 2015 · 1 comment

Comments

@deltamualpha
Copy link

running puppet-lint on https://github.com/ajjahn/puppet-samba/blob/master/manifests/server/ads.pp causes a TypeError crash. By chopping out various bits of the file and re-running, I've isolated it down to this line: https://github.com/ajjahn/puppet-samba/blob/master/manifests/server/ads.pp#L55

Full stacktrace, if helpful:
/Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:115:in []': no implicit conversion from nil to integer (TypeError)
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:115:in block (2 levels) in check' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:111:in each'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:111:in each_with_index' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:111:in block in check'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:95:in each' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:95:in check'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/checkplugin.rb:21:in run' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:58:in block in run'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:56:in each' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:56:in run'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint.rb:168:in run' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:59:in block in run'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:56:in each' from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:56:in run'
from /Library/Ruby/Gems/2.0.0/gems/puppet-lint-1.1.0/bin/puppet-lint:7:in <top (required)>' from /usr/bin/puppet-lint:23:in load'
from /usr/bin/puppet-lint:23:in <main>'

@rodjek
Copy link
Owner

rodjek commented Apr 12, 2015

Dupe of #409

@rodjek rodjek closed this as completed Apr 12, 2015
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