Bug 1367394

Summary: [abrt] rubygem-puppet-lint: /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:150:in `*': negative argument (ArgumentError)
Product: [Fedora] Fedora EPEL Reporter: Frank Büttner <bugzilla>
Component: rubygem-puppet-lintAssignee: Russell Harrison <fedora>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: fedora, ktdreyer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:96767085644144903b519b647507446480fad58a
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: machineid none

Description Frank Büttner 2016-08-16 10:37:41 UTC
Description of problem:
Try to check an puppet pp file.

Version-Release number of selected component:
rubygem-puppet-lint-1.1.0-2.el7

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/ruby /usr/bin/puppet-lint --fix wi_tomcat/manifests/install8.pp
executable:     /usr/bin/puppet-lint
kernel:         3.10.0-327.22.2.el7.x86_64
runlevel:       N 5
type:           Ruby
uid:            1000

Truncated backtrace:
/usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:150:in `*': negative argument (ArgumentError)
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/plugins/check_whitespace.rb:150:in `fix'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checkplugin.rb:41:in `block in fix_problems'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checkplugin.rb:38:in `each'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checkplugin.rb:38:in `fix_problems'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:68:in `block in run'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:67:in `each'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/checks.rb:67:in `run'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint.rb:168:in `run'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:59:in `block in run'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:56:in `each'
	from /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet-lint/bin.rb:56:in `run'
	from /usr/share/gems/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>'

Comment 1 Frank Büttner 2016-08-16 10:37:45 UTC
Created attachment 1191192 [details]
File: backtrace

Comment 2 Frank Büttner 2016-08-16 10:37:47 UTC
Created attachment 1191193 [details]
File: machineid

Comment 3 Frank Büttner 2016-08-16 10:40:04 UTC
puppet-lint wi_tomcat/manifests/install8.pp woll work.
but puppet-lint --fix wi_tomcat/manifests/install8.pp will crash