Bug 1826495
| Summary: | Hammer CLI guide has stray error message | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stephen Wadeley <swadeley> |
| Component: | Documentation | Assignee: | Sergei Petrosian <spetrosi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Suyog Sainkar <ssainkar> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.7.0 | CC: | ofedoren, pondrejk, spetrosi |
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-16 09:37:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1831066 | ||
| Bug Blocks: | |||
|
Description
Stephen Wadeley
2020-04-21 19:28:56 UTC
Hi Stephen, Thank you for reporting this. I will see what we can do. Hi Peter,
Some hammer commands have the note `Unfortunately the server does not support such operation.` in the output of the `hammer full-help --md` command. There are 8 of them:
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
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
[root@dell-r430-7 ~]#
~~~
Also, I tested if this `hammer content-view purge` command works, and it does.
Off topic: However, the `--count` option works differently and counts +1 version. For eample, I specified `--count` but the command kept 2 versions, not one. This might be a bug.
Questions:
Why does the `hammer full-help --md` command outputs the message `Unfortunately the server does not support such operation.` in those commands?
If this is intentional, why the message is not displayed when running each command with `--help`?
This causes our script that generates hammer-cli reference to collect those messages and confuse readers.
Thank you
Hi Sergei, from what I can tell it seems like a bug. The message appears where the "predefined field sets" table appears for other entries, so I speculate the api call for additional data doesn't find an expected response for those entries (They all come from Katello). I defer to Oleh, who'll likely know more Hi Sergei, Peter, It's not related to "predefined field sets" containing commands. It's a bug which is related to full-help command only. Is there a BZ for Hammer component that is tracking this? If so, please provide me the link and I'll sync the redmine issue. Hi Oleh, Thank you for verifying this. Now that you have confirmed that this is a bug I have reported it in BZ#1831066. These changes are now live on the customer portal: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.7/html/hammer_cli_guide/reference#hammer-erratum Thank you |