listing is the natural default. Please make it the default instead of erroring.
please make --list the default for the repos command as well.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
The config, servicelevel, and release commands all use --list. Would you like to review them while I'm working on this issue?
Lets do the same for config. The others, I like the default of show. But, if you are in there... [root@bkearney src]# ./subscription-manager service-level Current service level: [root@bkearney src]# ./subscription-manager release Release not set Seems like we could be consistent on that^^^
commit 62fe5323b17443ec873b10ee45c63e40ca1d21bd Author: Alex Wood <awood> Date: Fri Apr 6 22:42:07 2012 -0400 811594: The config, repos, and facts commands should default to --list if no options are provided.
[root@jmolet-vm0 rhsm]# subscription-manager facts cpu.core(s)_per_socket: 2 cpu.cpu(s): 2 cpu.cpu_socket(s): 1 distribution.id: Tikanga distribution.name: Red Hat Enterprise Linux Server distribution.version: 5.8 dmi.bios.address: 0xe8000 dmi.bios.bios_revision: 1.0 dmi.bios.relase_date: 01/01/2007 dmi.bios.rom_size: 64 KB dmi.bios.runtime_size: 96 KB dmi.bios.vendor: Bochs ...truncated.. [root@jmolet-vm0 rhsm]# diff <(subscription-manager facts --list) <(subscription-manager facts) #NO DIFF subscription-manager facts is shown to be the same as with --list. ======================================== [root@jmolet-vm0 rhsm]# subscription-manager config [server] baseurl = [https://cdn.redhat.com] ca_cert_dir = [/etc/rhsm/ca/] certfrequency = [240] consumercertdir = [/etc/pki/consumer] entitlementcertdir = [/etc/pki/entitlement] healfrequency = [1440] hostname = mgmt5.rhq.lab.eng.bos.redhat.com insecure = [0] manage_repos = [1] port = [8443] ...truncated... [root@jmolet-vm0 rhsm]# diff <(subscription-manager config --list) <(subscription-manager config) #NO DIFF subscription-manager config is shown to work the same as with --list ========================================= [root@jmolet-vm0 rhsm]# subscription-manager repos Error: This command requires that you use a --list option or specify a repo with --enable or --disable. ^^ repos does not run with an implied --list. Throwing back.
^^ Comment 7 was tested with: subscription-manager-1.0.4-1.git.3.1768f90.el5 python-rhsm-1.0.2-1.git.1.4659671.el5
master commit 38450bb2ede02f8b5d16c90efe9af2e12f77c545
Testing with Version: subscription-manager-1.0.4-1.git.11.02cf004.el5 python-rhsm-1.0.2-1.git.2.d5c3d05.el5 [root@jmolet-vm0 rpms]# subscription-manager register Username: stage_test_12 Password: The system has been registered with id: 1fd10e81-c5bf-4b00-8d1a-3283a35179b4 [root@jmolet-vm0 rpms]# subscription-manager subscribe --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jmolet-vm0 rpms]# subscription-manager repos +----------------------------------------------------------+ Entitled Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo Id: rhel-5-server-rpms Repo Name: Red Hat Enterprise Linux 5 Server (RPMs) Repo Url: https://cdn.redhat.com/content/dist/rhel/server/5/$releasever/$basearch/os Enabled: 1 Repo Id: rhel-5-server-cf-tools-1-source-rpms Repo Name: Red Hat CloudForms Tools for RHEL 5 (Source RPMs) Repo Url: https://cdn.redhat.com/content/dist/rhel/server/5/$releasever/$basearch/cf-tools/1.0/source/SRPMS Enabled: 0 ...truncated... subscription-manager repos now performs the same function as repos --list. marking VERIFIED.
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. http://rhn.redhat.com/errata/RHBA-2013-0033.html