[lxc-devel] [lxd/master] lxd/projects: Fix profile updates

stgraber on Github lxc-bot at linuxcontainers.org
Mon Nov 5 22:08:33 UTC 2018


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/20181105/b384c41d/attachment.bin>
-------------- next part --------------
From bf7ebb49c8e2fcd4ce3cc0267654e361a8f08e77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 5 Nov 2018 17:08:13 -0500
Subject: [PATCH] lxd/projects: Fix profile updates
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>
---
 lxd/profiles_utils.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/profiles_utils.go b/lxd/profiles_utils.go
index 7402cad206..7487cd7c01 100644
--- a/lxd/profiles_utils.go
+++ b/lxd/profiles_utils.go
@@ -216,6 +216,7 @@ func doProfileUpdateContainer(d *Daemon, name string, old api.ProfilePut, nodeNa
 		Devices:      c.LocalDevices(),
 		Ephemeral:    c.IsEphemeral(),
 		Profiles:     c.Profiles(),
+		Project:      c.Project(),
 	}, true)
 }
 


More information about the lxc-devel mailing list