juju status --format=tabular
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Anastasia |
Bug Description
Subject: juju status --format=tabular
Date: Thu, 19 Feb 2015 08:07:27 +0400
From: John Meinel <email address hidden>
To: <email address hidden> <email address hidden>
I was wondering if we could change the sorting to be "numeric" aware
instead of just alphabetical.
Specifically if you have more than 10 units you get:
[Units]
ID STATE VERSION MACHINE PORTS PUBLIC-ADDRESS
ubuntu/0 started 1.18.4 1 ec2-54-
ubuntu/1 started 1.18.4 2 ec2-54-
ubuntu/10 started 1.18.4 1 ec2-54-
ubuntu/100 started 1.18.4 1 ec2-54-
ubuntu/101 started 1.18.4 2 ec2-54-
ubuntu/102 started 1.18.4 3 ec2-54-
ubuntu/103 started 1.18.4 4 ec2-54-
ubuntu/104 started 1.18.4 5 ec2-54-
ubuntu/11 started 1.18.4 2 ec2-54-
...
Which is not ideal IMO. Since we *know* that units are in the form
SERVICE/NUMBER can we do numerical sorting on the second part of the field?
Martin Pool wrote a really nice natural order string comparison utility
which we could borrow:
http://
John
=:->
Changed in juju-core: | |
status: | New → In Progress |
assignee: | nobody → Anastasia (anastasia-macmood) |
Changed in juju-core: | |
milestone: | none → 1.23 |
importance: | Undecided → High |
Changed in juju-core: | |
milestone: | 1.23 → 1.23-beta1 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
This laneded already - https:/ /github. com/juju/ juju/pull/ 1668