Jira (FACT-3074) '--log-level none' throws exception

19 views
Skip to first unread message

Gerard Kok (Jira)

unread,
Sep 16, 2021, 3:58:03 AM9/16/21
to puppe...@googlegroups.com
Gerard Kok created an issue
 
Facter / Bug FACT-3074
'--log-level none' throws exception
Issue Type: Bug Bug
Affects Versions: FACT 4.2.3
Assignee: Unassigned
Components: Facter 4
Created: 2021/09/16 12:57 AM
Environment:

Verified on:

macOS 11.6

Ubuntu 20.04

 

Priority: Normal Normal
Reporter: Gerard Kok

facter --log-level none throws an exception, despite the help (facter --help) mentioning it as an option.

The exception:

$ facter --log-level none
Traceback (most recent call last):
	16: from /opt/puppetlabs/puppet/bin/facter:10:in `<main>'
	15: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli_launcher.rb:23:in `start'
	14: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
	13: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	12: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	11: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	10: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli.rb:120:in `query'
	 9: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:431:in `to_user_output'
	 8: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:529:in `init_cli_options'
	 7: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options.rb:51:in `init_from_cli'
	 6: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options.rb:57:in `store'
	 5: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options.rb:57:in `each'
	 4: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options.rb:59:in `block in store'
	 3: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options/option_store.rb:164:in `set'
	 2: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/options/option_store.rb:151:in `log_level='
	 1: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/logging/logger.rb:33:in `level='
/opt/puppetlabs/puppet/lib/ruby/2.7.0/logger.rb:268:in `level=': invalid log level: none (ArgumentError)

An (obvious) workaround is to not append the '--log-level' option, or use a different level (didn't test all, but they seem to work).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Sep 20, 2021, 10:16:02 AM9/20/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Labels: needs_repro

Ciprian Badescu (Jira)

unread,
Sep 27, 2021, 10:23:01 AM9/27/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11-03

Ciprian Badescu (Jira)

unread,
Oct 18, 2021, 9:31:02 AM10/18/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11- 03 17

Ciprian Badescu (Jira)

unread,
Oct 18, 2021, 9:45:03 AM10/18/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11- 17 03

Ciprian Badescu (Jira)

unread,
Oct 20, 2021, 4:17:03 AM10/20/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Oct 20, 2021, 4:25:02 AM10/20/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Team: Night's Watch

Luchian Nemes (Jira)

unread,
Oct 20, 2021, 5:51:03 AM10/20/21
to puppe...@googlegroups.com
Luchian Nemes assigned an issue to Luchian Nemes
Change By: Luchian Nemes
Assignee: Luchian Nemes

Luchian Nemes (Jira)

unread,
Nov 1, 2021, 9:16:02 AM11/1/21
to puppe...@googlegroups.com
Luchian Nemes updated an issue
Change By: Luchian Nemes
Release Notes: Bug Fix
Release Notes Summary: Before this release, Facter 4 did not accept `none` as a log level even though it was supported as per `--help` output. This fix aligns the behaviour with Facter 3 by accepting `none` as log level.

Ciprian Badescu (Jira)

unread,
Nov 2, 2021, 6:01:03 AM11/2/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Fix Version/s: FACT 4.2.6

Parker Leach (Jira)

unread,
Dec 8, 2021, 11:57:02 AM12/8/21
to puppe...@googlegroups.com
Parker Leach updated an issue
Change By: Parker Leach
Labels: docs_reviewed needs_repro
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages