RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1161694 - incorrect bash completion for new subscription-manager list option "--pool-only"
Summary: incorrect bash completion for new subscription-manager list option "--pool-only"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
: 1162158 (view as bug list)
Depends On:
Blocks: rhsm-rhel71
TreeView+ depends on / blocked
 
Reported: 2014-11-07 16:28 UTC by John Sefler
Modified: 2015-03-05 13:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:16:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0502 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2015-03-05 16:20:39 UTC

Description John Sefler 2014-11-07 16:28:05 UTC
Description of problem:
Implementation of Bug 1159974 introduced new subscription-manager list option "--pool-id", but bash completion reports "--pool-id-only".

Version-Release number of selected component (if applicable):
[root@jsefler-os7server ~]# rpm -q subscription-manager
subscription-manager-1.13.7-1.git.16.b9085ec.el7.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-os7server ~]# subscription-manager list --help | grep "pool-"
  --pool-only           lists only the pool IDs for applicable available or
  ^^^^^^^^^^^

[root@jsefler-os7server ~]# subscription-manager list -<TAB><TAB>
--all              --help             --no-overlap       --proxypassword
--available        --installed        --ondate           --proxyuser
--consumed         --matches          --pool-id-only     --servicelevel
                                      ^^^^^^^^^^^^^^
-h                 --match-installed  --proxy  


Actual results:
Bash completion is reporting option "--pool-id-only", but --help reports that "--pool-only" is the correct option.


Expected results:
Bash completion should report "--pool-only"

Comment 1 Bryan Kearney 2014-11-07 21:00:36 UTC
fixed in commit 089b9a60c951ab7d480650e75c43ae1c9b5e2bd0
Author: Bryan Kearney <bkearney>
Date:   Fri Nov 7 14:23:53 2014 -0500

    1161694: Modify the --pool-id-only to be --pool-only in bash completion and man page

Comment 3 Shwetha Kallesh 2014-11-24 07:22:36 UTC
Marking verified!!

[root@dhcp35-236 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.35-1
subscription management rules: 5.11
subscription-manager: 1.13.9-1.el7
python-rhsm: 1.13.8-1.el7


[root@dhcp35-236 ~]# subscription-manager list -
--all              --consumed         --help             --matches          --no-overlap       --pool-only        --proxypassword    --servicelevel
--available        -h                 --installed        --match-installed  --ondate           --proxy

Comment 4 William Poteat 2015-01-16 14:58:14 UTC
*** Bug 1162158 has been marked as a duplicate of this bug. ***

Comment 6 errata-xmlrpc 2015-03-05 13:16:09 UTC
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://rhn.redhat.com/errata/RHBA-2015-0502.html


Note You need to log in before you can comment on or make changes to this bug.