Bug 795525 - 'katello org subscriptions' incorrectly labels output column as "ProductName"
Summary: 'katello org subscriptions' incorrectly labels output column as "ProductName"
Keywords:
Status: CLOSED DUPLICATE of bug 824069
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium vote
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-20 19:12 UTC by James Laska
Modified: 2014-01-27 13:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-27 15:53:08 UTC
Target Upstream Version:


Attachments (Terms of Use)
0001-795525-Change-productName-column-header-to-Subscript.patch (1.02 KB, patch)
2012-02-20 19:13 UTC, James Laska
no flags Details | Diff

Description James Laska 2012-02-20 19:12:24 UTC
Description of problem:

The command 'katello org subscriptions' output header shows 'ProductName'.  However, there are no matching products by the name used (in the case of RHEL).  I believe the column is incorrectly named.  Perhaps it should simple state "Name" or "Subscription"?

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

 * katello-0.1.238-4.el6.noarch
 * katello-cli-0.1.54-2.el6.noarch

Steps to Reproduce:
1. katello -u admin -p admin product list --org=ACME_Corporation -g
2. katello -u admin -p admin org subscriptions --org=ACME_Corporation -g
 
Actual results:

> katello> product list --org=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                   Product List For Organization ACME_Corporation, Environment 'Library'
>  
>  Id          Name                                                              Provider Id   Provider Name   Sync Plan Name   GPG key 
> -----------------------------------------------------------------------------------------------------------------------------------------
>  69          Red Hat Enterprise Linux Server                                   1             Red Hat         None                     
>  MCT0917F3   Red Hat Enterprise Linux Standard L3 for up to 2 sockets 3 year   1             Red Hat         None                     

> katello> org subscriptions --name=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                                       Organization's Subscriptions
>  
>  ProductName                                                          Consumed   Id                               
> -----------------------------------------------------------------------------------------------------------------------------------------
>  Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year   0          8a90ccd5359eb30501359ebccc40002a 

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Does not match the name of any of the products listed earlier

Expected results:

> katello> org subscriptions --name=ACME_Corporation -g
> -----------------------------------------------------------------------------------------------------------------------------------------
>                                                       Organization's Subscriptions
>  
>  Subscription Name                                                    Consumed   Id                               
> -----------------------------------------------------------------------------------------------------------------------------------------
>  Red Hat Enterprise Linux, Standard L3 (for up to 2 sockets) 3 year   0          8a90ccd5359eb30501359ebccc40002a

Comment 1 James Laska 2012-02-20 19:13:34 UTC
Created attachment 564508 [details]
0001-795525-Change-productName-column-header-to-Subscript.patch

Proposed tested patch that changes the column header name from 'ProductName', to 'Subscription'

Comment 4 Lukas Zapletal 2012-05-24 08:30:39 UTC
According to the Bug 815223 I will apply James' patch. Also note Bug 824069 - we are no longer listing all products, marketing are hidden by default.

Comment 5 Lukas Zapletal 2012-08-27 15:53:08 UTC
Bug 824069 fixed. Errata is out.

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


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