Description of problem: Each of the rct modules has options, but they are not bash completing. Version-Release number of selected component (if applicable): [root@jsefler-6 ~]# rpm -q subscription-manager python-rhsm bash-completion subscription-manager-1.9.5-1.el6.x86_64 python-rhsm-1.9.4-1.el6.x86_64 bash-completion-1.3-7.el6.noarch Steps to Reproduce: [root@jsefler-6 ~]# rct cat-cert -<TAB><TAB> Expected results: -h --help --no-products --no-content [root@jsefler-6 ~]# rct cat-manifest -<TAB><TAB> Expected results: -h --help [root@jsefler-6 ~]# rct dump-manifest -<TAB><TAB> Expected results: -h --help --destination -f --force [root@jsefler-6 ~]# rct stat-cert -<TAB><TAB> Expected results: -h --help Additional Info: bash completion of the modules works well... [root@jsefler-6 ~]# rct <TAB><TAB> cat-cert cat-manifest dump-manifest stat-cert
commit 86269bf8b3b3686dc99e21a0ec1e22b363242ba6 Author: Bryan Kearney <bkearney> Date: Mon Oct 28 16:38:45 2013 -0400 1004318: Bash completion for rct was not handing options and file lists correctly. Now, if you enter a command like: rct cat-cert <TAB> it will list out the file names. If you enter: rct cat-cert -<TAB> it will show you the options.
Verifying Version... [root@jsefler-7 ~]# rpm -q subscription-manager python-rhsm bash-completion subscription-manager-1.10.11-1.el7.x86_64 python-rhsm-1.10.11-1.el7.x86_64 bash-completion-2.1-6.el7.noarch [root@jsefler-7 ~]# rct cat-cert -h | egrep "^ +-" -h, --help show this help message and exit --no-products do not show the cert's product information --no-content do not show the cert's content info [root@jsefler-7 ~]# rct cat-cert -<TAB> -h --help --no-content --no-products [root@jsefler-7 ~]# rct cat-manifest -h | egrep "^ +-" -h, --help show this help message and exit [root@jsefler-7 ~]# rct cat-manifest -<TAB> -h --help [root@jsefler-7 ~]# rct dump-manifest -h | egrep "^ +-" -h, --help show this help message and exit --destination=DESTINATION -f, --force overwrite files which may exist [root@jsefler-7 ~]# rct dump-manifest -<TAB> --destination -f --force -h --help [root@jsefler-7 ~]# rct stat-cert -h | egrep "^ +-" -h, --help show this help message and exit [root@jsefler-7 ~]# rct stat-cert -<TAB> -h --help
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.
The bug exists on latest RHEL5.11, so open it. Verifying Version: subscription-manager: 1.11.3-6.el5 python-rhsm: 1.11.3-3.el5
Verifying Version... [root@jsefler-5 ~]# rpm -q subscription-manager python-rhsm bash-completion subscription-manager-1.11.3-10.el5 python-rhsm-1.11.3-5.el5 bash-completion-1.3-7.el5 [root@jsefler-5 ~]# rct cat-cert -h | egrep "^ +-" -h, --help show this help message and exit --no-products do not show the cert's product information --no-content do not show the cert's content info [root@jsefler-5 ~]# rct cat-cert -<TAB><TAB> -h --help --no-content --no-products [root@jsefler-5 ~]# rct cat-manifest -h | egrep "^ +-" -h, --help show this help message and exit [root@jsefler-5 ~]# rct cat-manifest -<TAB><TAB> -h --help [root@jsefler-5 ~]# rct dump-manifest -h | egrep "^ +-" -h, --help show this help message and exit --destination=DESTINATION -f, --force overwrite files which may exist [root@jsefler-5 ~]# rct dump-manifest -<TAB><TAB> --destination -f --force -h --help [root@jsefler-5 ~]# rct stat-cert -h | egrep "^ +-" -h, --help show this help message and exit [root@jsefler-5 ~]# rct stat-cert -<TAB><TAB> -h --help VERIFIED: This bug was fixed for RHEL7.0 as verified in comment 2 VERIFIED: This bug was fixed for RHEL5.11 as verified in this comment 6
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered