Bug #29697
closedhammer full-help returns misleading output
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1831066
Description of problem:
At the output of the `hammer full-help --md` command, some hammer commands have the note `Unfortunately the server does not support such operation.`
The note is misleading because the commands are supported.
There are 8 of such commands:
hammer content-view purge
hammer host errata
hammer host package
hammer host package-group
hammer host subscription
hammer host-collection erratum
hammer host-collection package
hammer host-collection package-group
Version-Release number of selected component (if applicable):
6.7
How reproducible:
Always
Steps to Reproduce:
1. hammer full-help --md
2. In the output, locate "Unfortunately the server does not support such operation."
Actual results:
The note should note be displayed for the commands.
Expected results:
The note is displayed and is misleading
Additional information:
At the same time, running these individual commands with `--help` does not show this message in the output. For example:
~~~
[root@dell-r430-7 ~]# hammer content-view purge --help
Usage:
hammer content-view purge [OPTIONS]
Options:
--async Do not wait for the task
--count COUNT Count of unused versions to keep
Default: 3
--id ID Content View numeric identifier
--name NAME Content View name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help Print help
~~~
Updated by Oleh Fedorenko about 4 years ago
- Status changed from New to Assigned
- Assignee set to Oleh Fedorenko
- Triaged changed from No to Yes
Updated by The Foreman Bot about 4 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/329 added
Updated by The Foreman Bot about 4 years ago
- Fixed in Releases hammer-cli-0.20.0 added
Updated by Oleh Fedorenko about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 107081c1e26460d273af5406550e01db8f7216b8.