The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3572
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) ===
From 39892da0a4ea41ea9f47b6ba0e39a7b92297ab5c Mon Sep 17 00:00:00 2001 From: Alberto Donato <[email protected]> Date: Wed, 19 Jul 2017 12:32:37 +0200 Subject: [PATCH] Don't access the returned struct in case of error Signed-off-by: Alberto Donato <[email protected]> --- lxd/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/images.go b/lxd/images.go index d764839ad..36a11d983 100644 --- a/lxd/images.go +++ b/lxd/images.go @@ -874,7 +874,7 @@ func autoUpdateImages(d *Daemon) { for _, fingerprint := range images { id, info, err := dbImageGet(d.db, fingerprint, false, true) if err != nil { - logger.Error("Error loading image", log.Ctx{"err": err, "fp": info.Fingerprint}) + logger.Error("Error loading image", log.Ctx{"err": err, "fp": fingerprint}) continue }
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
