[lxc-devel] [lxd/master] lxd/patches: Profiles are in the cluster db

stgraber on Github lxc-bot at linuxcontainers.org
Tue Aug 21 16:20:37 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/20180821/a952a82f/attachment.bin>
-------------- next part --------------
From f4230b6534c2078d93821d83a7c8e629c4bc3eeb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 21 Aug 2018 12:20:10 -0400
Subject: [PATCH] lxd/patches: Profiles are in the cluster db
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/patches.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/patches.go b/lxd/patches.go
index 2ab1b5b38d..874fe2e567 100644
--- a/lxd/patches.go
+++ b/lxd/patches.go
@@ -1766,7 +1766,7 @@ func updatePoolPropertyForAllObjects(d *Daemon, poolName string, allcontainers [
 			// This is nasty, but we need to clear the profiles config and
 			// devices in order to add the new root device including the
 			// newly added storage pool.
-			tx, err := d.db.Begin()
+			tx, err := d.cluster.Begin()
 			if err != nil {
 				return err
 			}


More information about the lxc-devel mailing list