Bug 855365

Summary: New String: Unique Output String When CLI Unsubscribe --all From 1 Subscription
Product: Red Hat Enterprise Linux 6 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: alikins, bkearney, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.1.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 08:56:06 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:
Bug Depends On:    
Bug Blocks: 771481, 840993    

Description Matt Reid 2012-09-07 14:15:38 UTC
Description of problem:
When you unsubscribe using "subscription-manager unsubscribe --all" from 1 subscription, our current output string is "This machine has been unsubscribed from 1 subscriptions". While this works great for if there are 2 or more subscriptions that were just unsubscribed, it would be nice if we had a unique string for when subscriptions shouldn't be plural.

Desired Output:
"This machine has been unsubscribed from 1 subscription"

Version-Release number of selected component (if applicable):
1.0.17-1

Comment 1 Bryan Kearney 2012-10-12 13:50:32 UTC
fixed in master at 3587a47789206bb22329d4af165350b573ab2923

Comment 5 Shwetha Kallesh 2012-11-06 07:38:02 UTC
Verified!!

[root@rhel-64-server ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.17-1
subscription-manager: 1.1.5-1.el6
python-rhsm: 1.1.4-1.el6


[root@rhel-64-server ~]# subscription-manager subscribe --pool 8ac6a3db3abfc2ed013abfc3a431023b
Successfully consumed a subscription for: Shared File System

[root@rhel-64-server ~]# subscription-manager unsubscribe --all
This machine has been unsubscribed from 1 subscription.

Comment 7 errata-xmlrpc 2013-02-21 08:56:06 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.

http://rhn.redhat.com/errata/RHBA-2013-0350.html