Bug 640724

Summary: consumer get_value output needs formatting
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cperry, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 16:51:46 UTC Type: ---
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: 647488    

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