[lxc-devel] [lxd/master] Filter on expanded config rather than local config
stgraber on Github
lxc-bot at linuxcontainers.org
Fri Apr 8 18:38:31 UTC 2016
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/20160408/7d51d250/attachment.bin>
-------------- next part --------------
From 4aa2cc8f4e8e470ea151dfd74e2ebf930a014b1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 8 Apr 2016 14:38:09 -0400
Subject: [PATCH] Filter on expanded config rather than local config
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxc/list.go b/lxc/list.go
index 1574c73..902f177 100644
--- a/lxc/list.go
+++ b/lxc/list.go
@@ -124,7 +124,7 @@ func (c *listCmd) shouldShow(filters []string, state *shared.ContainerInfo) bool
}
found := false
- for configKey, configValue := range state.Config {
+ for configKey, configValue := range state.ExpandedConfig {
if c.dotPrefixMatch(key, configKey) {
//try to test filter value as a regexp
regexpValue := value
More information about the lxc-devel
mailing list