Bug #37781
closedRemove "Organization and Location" option from hammer cli for command "hammer user-group external create --help".
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
Updated by Oleh Fedorenko 18 days ago
- Related to Bug #37824: Hide organization-id and location-id options from api documentation of unscoped resources added
Updated by Oleh Fedorenko 18 days ago
- Related to Feature #38077: Support :show flag from apipie-bindings added
Updated by Oleh Fedorenko 18 days ago
- Status changed from New to Closed
Closed as it's fixed in linked issues.