[lxc-devel] [lxd/master] lxd/containers: Fix bad operation type

stgraber on Github lxc-bot at linuxcontainers.org
Mon May 6 22:42:35 UTC 2019


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/20190506/69d1a052/attachment.bin>
-------------- next part --------------
From 22366b9bcbf124b6f36bab7055e05efc47f2a8e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 6 May 2019 18:42:06 -0400
Subject: [PATCH] lxd/containers: Fix bad operation type
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/container_put.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/container_put.go b/lxd/container_put.go
index 90a12b7d5e..388413746f 100644
--- a/lxd/container_put.go
+++ b/lxd/container_put.go
@@ -80,7 +80,7 @@ func containerPut(d *Daemon, r *http.Request) Response {
 			return nil
 		}
 
-		opType = db.OperationSnapshotUpdate
+		opType = db.OperationContainerUpdate
 	} else {
 		// Snapshot Restore
 		do = func(op *operation) error {


More information about the lxc-devel mailing list