Bug 1933353
Summary: | 'hammer host subscription product-content' Cannot Show 'Default Enabled?' Field | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Bernie Hoefer <bhoefer> |
Component: | Hammer | Assignee: | Oleh Fedorenko <ofedoren> |
Status: | CLOSED ERRATA | QA Contact: | Shweta Singh <shwsingh> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.8.0 | CC: | apatel, gtalreja, kgaikwad, ofedoren, rabajaj, tbrisker, vijsingh |
Target Milestone: | 6.10.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-hammer_cli-2.5.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-16 14:39:05 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: |
Description
Bernie Hoefer
2021-02-26 19:12:48 UTC
This is actually a bug in hammer core. --fields option doesn't work if a label contains question mark (it interprets that as regexp). Created redmine issue https://projects.theforeman.org/issues/31984 from this bug Upstream bug assigned to ofedoren Upstream bug assigned to ofedoren Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31984 has been resolved. Verified. Version Tested : Satellite 6.10 Snap 4 Steps followed: 1. Create host on satellite 2. Add Redhat repositories on satellite 3. Execute hammer command to restrict the output fields using command "hammer host subscription product-content --host host1.localdomain --fields="label,default enabled?,override"" Observation: hammer host subscription product-content --help gives option to restrict output fields. Trace: hammer host subscription product-content --host host1.localdomain --fields="label,default enabled?,override" ----------------------------------|------------------|--------- LABEL | DEFAULT ENABLED? | OVERRIDE ----------------------------------|------------------|--------- rhel-7-server-ansible-2.9-rpms | no | rh-sso-7.4-for-rhel-7-server-rpms | no | ----------------------------------|------------------|--------- hammer host subscription product-content --host host1.localdomain --fields="label,default enabled?,override,id" -----|-----------------------------------|------------------|--------- ID | LABEL | DEFAULT ENABLED? | OVERRIDE -----|-----------------------------------|------------------|--------- 628 | rhel-7-server-ansible-2.9-rpms | no | 5990 | rh-sso-7.4-for-rhel-7-server-rpms | no | -----|-----------------------------------|------------------|--------- 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 (Satellite 6.10 Satellite Tools Release), 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/RHBA-2021:4701 |