[lxc-devel] [lxd/master] images: Fix bad error message

stgraber on Github lxc-bot at linuxcontainers.org
Tue Oct 3 21:36:31 UTC 2017


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/20171003/cc5fd7f7/attachment.bin>
-------------- next part --------------
From 4fd6b5a0ca8fe4a8877510372f6c86c2b3f2c5f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 3 Oct 2017 17:36:03 -0400
Subject: [PATCH] images: Fix bad error message
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/images.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/images.go b/lxd/images.go
index 973ed8500..eb3a3dabf 100644
--- a/lxd/images.go
+++ b/lxd/images.go
@@ -945,7 +945,7 @@ func autoUpdateImage(d *Daemon, op *operation, id int, info *api.Image) error {
 		if info.Cached {
 			err = db.ImageLastAccessInit(d.db, hash)
 			if err != nil {
-				logger.Error("Error moving aliases", log.Ctx{"err": err, "fp": hash})
+				logger.Error("Error setting cached flag", log.Ctx{"err": err, "fp": hash})
 				continue
 			}
 		}


More information about the lxc-devel mailing list