[lxc-devel] [lxd/master] lxd/containers: Have findIdmap look at projects

stgraber on Github lxc-bot at linuxcontainers.org
Sun Feb 23 18:36:30 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200223/e12d5efb/attachment.bin>
-------------- next part --------------
From be4226c61980f94db8361225decdd4af2fabf2ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 23 Feb 2020 13:35:50 -0500
Subject: [PATCH] lxd/containers: Have findIdmap look at projects
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #6922

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

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index edc5f95cb1..7145db22a0 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -579,7 +579,7 @@ func findIdmap(state *state.State, cName string, isolatedStr string, configBase
 	idmapLock.Lock()
 	defer idmapLock.Unlock()
 
-	cts, err := instanceLoadAll(state)
+	cts, err := instance.LoadNodeAll(state, instancetype.Container)
 	if err != nil {
 		return nil, 0, err
 	}


More information about the lxc-devel mailing list