[lxc-devel] [lxd/master] list: Re-add dropped sort.Sort call

stgraber on Github lxc-bot at linuxcontainers.org
Mon Apr 17 05:11:57 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170417/e15956d4/attachment.bin>
-------------- next part --------------
From e40b69c1dd4c237470331e90af0ba039b9d6a7fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 17 Apr 2017 01:11:32 -0400
Subject: [PATCH] list: Re-add dropped sort.Sort call
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/list.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxc/list.go b/lxc/list.go
index 83341bc..6804f93 100644
--- a/lxc/list.go
+++ b/lxc/list.go
@@ -360,6 +360,7 @@ func (c *listCmd) listContainers(d *lxd.Client, cinfos []api.Container, filters
 		table.SetAlignment(tablewriter.ALIGN_LEFT)
 		table.SetRowLine(true)
 		table.SetHeader(headers)
+		sort.Sort(byName(data))
 		table.AppendBulk(tableData())
 		table.Render()
 	case listFormatJSON:


More information about the lxc-devel mailing list