The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3558
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #3555 Signed-off-by: Stéphane Graber <[email protected]>
From aac4f128f2b5d3af9fc286628176c5c5c20dcdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]> Date: Sat, 15 Jul 2017 18:27:47 +0200 Subject: [PATCH] Improve "lxc image list" filter handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3555 Signed-off-by: Stéphane Graber <[email protected]> --- lxc/image.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lxc/image.go b/lxc/image.go index 2007116bd..6c0558504 100644 --- a/lxc/image.go +++ b/lxc/image.go @@ -752,10 +752,15 @@ func (c *imageCmd) run(conf *config.Config, args []string) error { return err } } else { - remote, _, err = conf.ParseRemote(args[1]) + var filter string + remote, filter, err = conf.ParseRemote(args[1]) if err != nil { return err } + + if filter != "" { + filters = append(filters, filter) + } } } else { remote, _, err = conf.ParseRemote("")
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
