Bug 640724 - consumer get_value output needs formatting
Summary: consumer get_value output needs formatting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-10-06 17:16 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-17 16:51:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-10-06 17:16:34 UTC
Description of problem:

[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
{}

[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com --key=location --value=rdu
 Successfully added key-value pair location:rdu

[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
{u'location': u'rdu'}

[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com --key=county --value=wake
 Successfully added key-value pair county:wake

[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
{u'county': u'wake', u'location': u'rdu'}

[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com --key=country --value=us
 Successfully added key-value pair country:us

[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
{u'county': u'wake', u'country': u'us', u'location': u'rdu'}

Comment 1 Sayli Karmarkar 2010-11-01 08:26:42 UTC
$ sudo pulp-admin consumer get_keyvalues --id=test_consumer
+------------------------------------------+
             Consumer Key-values
+------------------------------------------+

	KEY            :	VALUE          

--------------------------------------------

	key1           :	value1         


	key2           :	value2

Comment 2 Jay Dobies 2010-11-03 19:35:20 UTC
Fixed in build 0.78.

Comment 3 Preethi Thomas 2010-11-08 15:48:18 UTC
verified


[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com  --key=location --value=rdu
Successfully added key-value pair location:rdu

[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
+------------------------------------------+
             Consumer Key-values
+------------------------------------------+

	KEY            :	VALUE          

--------------------------------------------

	location       :	rdu            


[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com  --key=county --value=wake
Successfully added key-value pair county:wake

[root@preethi ~]# pulp-admin consumer add_keyvalue --id=preethi.usersys.redhat.com  --key=country --value=us
Successfully added key-value pair country:us

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin consumer get_keyvalues --id=preethi.usersys.redhat.com
+------------------------------------------+
             Consumer Key-values
+------------------------------------------+

	KEY            :	VALUE          

--------------------------------------------

	county         :	wake           


	country        :	us             


	location       :	rdu

Comment 4 Preethi Thomas 2011-02-17 16:51:46 UTC
Closing with community release 

pulp-0.0.139-1.fc14.noarch


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