Bug 965666 - CLI: subscription-manager identity shows -1 when unregistered
Summary: CLI: subscription-manager identity shows -1 when unregistered
Keywords:
Status: CLOSED DUPLICATE of bug 965669
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-05-21 13:49 UTC by Sharath Dwaral
Modified: 2015-03-23 01:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-24 19:10:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sharath Dwaral 2013-05-21 13:49:36 UTC
Description of problem:
When the system is not registered to any candlepin server and we run subscription-manager identity stdout shows -1

Version-Release number of selected component (if applicable):
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-gui-1.8.7-1.git.76.63f57ff.el5
python-rhsm-1.8.11-1.git.1.7236cc2.el5
subscription-manager-migration-1.8.7-1.git.76.63f57ff.el5
subscription-manager-1.8.7-1.git.76.63f57ff.el5
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-firstboot-1.8.7-1.git.76.63f57ff.el5


How reproducible:
Always

Steps to Reproduce:
 System in unregistered state

 # subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
-1

# echo $?
255


Actual results:
This system is not yet registered. Try 'subscription-manager register --help' for more information.
-1

Expected results:
"-1"  Should not be displayed

Additional info:

Comment 1 RHEL Program Management 2013-05-21 15:22:28 UTC
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.

Comment 2 Bryan Kearney 2013-05-24 19:10:26 UTC

*** This bug has been marked as a duplicate of bug 965669 ***


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