| Summary: | hammer do not sort content host by installable errata | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Mahesh Taru <mtaru> | ||||
| Component: | Hammer - Content | Assignee: | Andrew Kofink <akofink> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Kavita <kgaikwad> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.2.2 | CC: | akofink, bbuckingham, jcallaha, kgaikwad, tstrachota | ||||
| Target Milestone: | Unspecified | Keywords: | Reopened, Triaged | ||||
| 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: | 2018-02-21 16:49:54 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: | |||||
| Attachments: |
|
||||||
|
Description
Mahesh Taru
2016-10-22 03:50:58 UTC
In 6.3.0, the `--by` option is removed and replaced with the `--order` option. The query above would be changed like so: ``` # Before hammer -u admin -p password content-host list --organization-id <id> --content-view <content-view-name> --lifecycle-environment <lifecycle environment name> --by 'INSTALLABLE ERRATA' # After hammer -u admin -p password content-host list --organization-id <id> --content-view <content-view-name> --lifecycle-environment <lifecycle environment name> --order 'installable_errata [desc]' ``` Verified. Version Tested: Satellite-6.3 Snap 10. CLI output screen-shots attached. ** RPM package versions: satellite-6.3.0-16.0.beta.el7sat.noarch foreman-1.15.2-1.el7sat.noarch katello-3.4.4-2.el7sat.noarch tfm-rubygem-hammer_cli-0.10.2-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7sat.noarch As the content host resource is no longer there, host will be used instead on sat 6.3. Subcommand 'content-host' is also not present in hammer so this issue will not exist on 6.3. ** Note that - in 6.3.0, `--by` option is replaced by `--order` option. For example - hammer -u admin -p password host list --order 'name desc' Created attachment 1311182 [details]
hosts are ordered by name using --order
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 |