Actions
Bug #3504
closedRandom column sorting from proxy list command
Description
Description of problem:
run 'proxy list' and get a random sort by column
Steps to Reproduce:
1. run 'hammer -u admin -p admin proxy list' three times in a row and see what happens.
Actual results:
[root@cloud-qe-21 ~]# hammer -u admin -p admin proxy list -------------------------------------------------------------------- NAME | ID | URL -------------------------------------------------------------------- cloud-qe-21.idm.lab.bos.red... | 1 | https://cloud-qe-21.idm.lab... lenovo-rd230-01.lab.bos.red... | 2 | https://lenovo-rd230-01.lab... mgmt2.rhq.lab.eng.bos.redha... | 4 | https://mgmt2.rhq.lab.eng.b... -------------------------------------------------------------------- [root@cloud-qe-21 ~]# hammer -u admin -p admin proxy list -------------------------------------------------------------------- NAME | URL | ID -------------------------------------------------------------------- cloud-qe-21.idm.lab.bos.red... | https://cloud-qe-21.idm.lab... | 1 lenovo-rd230-01.lab.bos.red... | https://lenovo-rd230-01.lab... | 2 mgmt2.rhq.lab.eng.bos.redha... | https://mgmt2.rhq.lab.eng.b... | 4 -------------------------------------------------------------------- [root@cloud-qe-21 ~]# hammer -u admin -p admin proxy list -------------------------------------------------------------------- ID | URL | NAME -------------------------------------------------------------------- 1 | https://cloud-qe-21.idm.lab... | cloud-qe-21.idm.lab.bos.red... 2 | https://lenovo-rd230-01.lab... | lenovo-rd230-01.lab.bos.red... 4 | https://mgmt2.rhq.lab.eng.b... | mgmt2.rhq.lab.eng.bos.redha... --------------------------------------------------------------------
Expected results:
Some standard sort, probably by ID, I guess. An option to let user provide a sort key down the road might be nice, but at very least we should be providing results in the same manner each time.
Actions