Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-20010

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

XMLWordPrintable

    • Low
    • No Coverage
    • None

      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.

      Version-Release number of selected component (if applicable):

      How reproducible: 100%

      Steps to Reproduce:

      1. Run the following command on Red Hat Satellite:

      1. 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

      Actual results:

      1. 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.
      1. 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

      Additional info:

      It is requested by a customer on case 03605918

      ~~~
      If Org and Location are not valid options for this command then they should be removed from the CLI help and the command should be updated to not accept them.
      ~~~

              rhn-support-alazik Adam Lazik
              rhn-support-mkushwah Mohit Kushwah
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: