Jira (FACT-3046) Facter 4 CLI does not accept concatenated short flags

0 views
Skip to first unread message

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:31:02 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
 
Facter / Bug FACT-3046
Facter 4 CLI does not accept concatenated short flags
Change By: Gheorghe Popescu
Summary: Facter 4 CLI doe does not accept concatenated short flags
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:34:01 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Trying to run `facter -jp` or `facter -dv`  does not work, resulting in an error:

{noformat}
[2021-05-24 10:34:46.955480 ] ERROR Facter::OptionsValidator - unrecognised option '-p'
{noformat}

Previously
with this worked in Facter 3

At the first glance seems that options defined with [class_option|https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L40] can be combined, but the ones defined [with a specific mapping error out.|https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L159-L160]

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:34:03 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Trying to run `facter -jp` or `facter -dv`  does not work, resulting in an error:

{noformat}
[2021-05-24 10:34:46.955480 ] ERROR Facter::OptionsValidator - unrecognised option '-p'
{noformat}

Previously this worked in Facter 3

At the first glance seems that options defined with [class_option|https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L40] can be combined, but the ones defined [with a specific mapping
error out. |https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L159-L160]   error out.

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:39:01 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Trying to run `facter -jp` or `facter -dv`  does not work, resulting in an error:

{noformat}
[2021-05-24 10:34:46.955480 ] ERROR Facter::OptionsValidator - unrecognised option '-p'
{noformat}

Some of the combinations works, for example `facter -jd`

Previously this worked in Facter 3

At the first glance seems that options defined with [class_option|https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L40] can be combined, but the ones defined [with a specific mapping|https://github.com/puppetlabs/facter/blob/main/lib/facter/framework/cli/cli.rb#L159-L160]  error out.

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:39:04 AM5/24/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 4:40:04 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Acceptance Criteria: Combinations of short flags should work, eg -jp, -jd
At least all the ones that worked on Facter 3 should work on Facter 4 also.

Gheorghe Popescu (Jira)

unread,
May 24, 2021, 7:48:05 AM5/24/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Acceptance Criteria:
Combinations of short flags should work, eg -jp, -jd
At least all the ones combinations that worked on Facter 3 should work on Facter 4 also.

Garrett Guillotte (Jira)

unread,
May 24, 2021, 1:44:04 PM5/24/21
to puppe...@googlegroups.com
Garrett Guillotte updated an issue
Change By: Garrett Guillotte
Release Notes: Known Issue
Release Notes Summary: Facter 3 allowed short flags to be combined, such as {{-jp}} or {{-jd}}. In Facter 4, short flags should be declared separately, such as {{-j -p}} or {{-j -d}}.

Ciprian Badescu (Jira)

unread,
May 25, 2021, 10:14:04 AM5/25/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
May 28, 2021, 1:22:27 PM5/28/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
May 28, 2021, 1:52:26 PM5/28/21
to puppe...@googlegroups.com

Dorin Pleava (Jira)

unread,
Jun 2, 2021, 9:44:03 AM6/2/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 9, 2021, 9:49:03 AM6/9/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Jun 16, 2021, 3:46:02 AM6/16/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Fix Version/s: FACT 4.2.1

Christine Yoon (Jira)

unread,
Jun 21, 2021, 10:20:02 AM6/21/21
to puppe...@googlegroups.com
Christine Yoon updated an issue
Change By: Christine Yoon
Labels: doc_reviewed jira_escalated

Christine Yoon (Jira)

unread,
Jun 21, 2021, 2:28:02 PM6/21/21
to puppe...@googlegroups.com
Christine Yoon updated an issue
Change By: Christine Yoon
Labels: doc_reviewed doc-reviewed jira_escalated

Christine Yoon (Jira)

unread,
Jun 21, 2021, 2:29:01 PM6/21/21
to puppe...@googlegroups.com
Christine Yoon updated an issue
Change By: Christine Yoon
Labels: doc docs -reviewed jira_escalated

Jenna McCarthy (Jira)

unread,
Jun 25, 2021, 5:42:01 PM6/25/21
to puppe...@googlegroups.com
Jenna McCarthy updated an issue
Change By: Jenna McCarthy
Labels: 001G000001p3dQmIAI docs-reviewed jira_escalated
Reply all
Reply to author
Forward
0 new messages