Re: juju status --format=tabular

2015-02-18 Thread Ian Booth
+1 from me too - we should be able to do this next week before the freeze on the
27th

On 19/02/15 15:09, Tim Penhey wrote:
> On 19/02/15 17:07, John Meinel wrote:
>> 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-220-86-118.eu-we...
>> ubuntu/1   started 1.18.4  2 ec2-54-155-143-100.eu-w...
>> ubuntu/10  started 1.18.4  1 ec2-54-220-86-118.eu-we...
>> ubuntu/100 started 1.18.4  1 ec2-54-220-86-118.eu-we...
>> ubuntu/101 started 1.18.4  2 ec2-54-155-143-100.eu-w...
>> ubuntu/102 started 1.18.4  3 ec2-54-74-157-229.eu-we...
>> ubuntu/103 started 1.18.4  4 ec2-54-220-194-242.eu-w...
>> ubuntu/104 started 1.18.4  5 ec2-54-246-53-159.eu-we...
>> ubuntu/11  started 1.18.4  2 ec2-54-155-143-100.eu-w...
>> ...
>>
>> 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?
> 
> +1 FWIW
> 
> Tim
> 

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: juju status --format=tabular

2015-02-18 Thread Tim Penhey
On 19/02/15 17:07, John Meinel wrote:
> 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-220-86-118.eu-we...
> ubuntu/1   started 1.18.4  2 ec2-54-155-143-100.eu-w...
> ubuntu/10  started 1.18.4  1 ec2-54-220-86-118.eu-we...
> ubuntu/100 started 1.18.4  1 ec2-54-220-86-118.eu-we...
> ubuntu/101 started 1.18.4  2 ec2-54-155-143-100.eu-w...
> ubuntu/102 started 1.18.4  3 ec2-54-74-157-229.eu-we...
> ubuntu/103 started 1.18.4  4 ec2-54-220-194-242.eu-w...
> ubuntu/104 started 1.18.4  5 ec2-54-246-53-159.eu-we...
> ubuntu/11  started 1.18.4  2 ec2-54-155-143-100.eu-w...
> ...
> 
> 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?

+1 FWIW

Tim

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev