Project

General

Profile

Actions

Bug #37781

open

Remove "Organization and Location" option from hammer cli for command "hammer user-group external create --help".

Added by Adam Lazik about 2 months ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:

Organization and Location are not valid options whilst creating user-group or user-group external, according to the "https://access.redhat.com/solutions/7010598" article.

It is required to remove the "Organization and Location" option from hammer cli for the command "hammer user-group external create --help" to avoid confusion.

Steps to Reproduce:

1. Run the following command on Foreman:

hammer user-group external create --help

Actual results:

hammer user-group external create --help
Usage:
hammer user-group external create [OPTIONS]

Options:
--auth-source[-id] VALUE/NUMBER Name/id of linked authentication source
--location[-id|-title] VALUE/NUMBER Set the current location context for the request <<<<<<< Location usage suggested
--name VALUE External user group name
--organization[-id|-title] VALUE/NUMBER Set the current organization context for the request <<<<<<< Organization usage suggested
--user-group[-id] VALUE Name/id or name of user group
-h, --help Print help

Expected results:

The hammer help command should not suggest the options for Organization/Location to avoid confusion. As per KB "https://access.redhat.com/solutions/7010598", there is no need to specify taxonomy options (location/organization) whilst creating user-group or user-group external.
hammer user-group external create --help
Usage:
hammer user-group external create [OPTIONS]

Options:
--auth-source[-id] VALUE/NUMBER Name/id of linked authentication source
--name VALUE External user group name
--user-group[-id] VALUE Name/id or name of user group
-h, --help Print help

No data to display

Actions

Also available in: Atom PDF