Bug 640724
| Summary: | consumer get_value output needs formatting | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | 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 | ||
$ sudo pulp-admin consumer get_keyvalues --id=test_consumer
+------------------------------------------+
Consumer Key-values
+------------------------------------------+
KEY : VALUE
--------------------------------------------
key1 : value1
key2 : value2
Fixed in build 0.78. 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
Closing with community release pulp-0.0.139-1.fc14.noarch |
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'}