Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1367394 - [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)
Summary: [abrt] rubygem-puppet-lint: /usr/share/gems/gems/puppet-lint-1.1.0/lib/puppet...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: rubygem-puppet-lint
Version: epel7
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Russell Harrison
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:96767085644144903b519b64750...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-16 10:37 UTC by Frank Büttner
Modified: 2016-08-16 10:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
File: backtrace (deleted)
2016-08-16 10:37 UTC, Frank Büttner
no flags Details
File: machineid (deleted)
2016-08-16 10:37 UTC, Frank Büttner
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.