[lxc-devel] [lxd/master] Bugfixes
stgraber on Github
lxc-bot at linuxcontainers.org
Fri Apr 21 03:11:36 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170421/9b2f3397/attachment.bin>
-------------- next part --------------
From 3e44ad4c701505ecd9d1cbf514d4ddcc7aac5fba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 20 Apr 2017 23:10:57 -0400
Subject: [PATCH] Drop leftover debug statement
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/daemon_images.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxd/daemon_images.go b/lxd/daemon_images.go
index 286b1a7..0b285cc 100644
--- a/lxd/daemon_images.go
+++ b/lxd/daemon_images.go
@@ -463,7 +463,7 @@ func (d *Daemon) ImageDownload(op *operation, server string, protocol string, ce
// Create the database entry
err = dbImageInsert(d.db, info.Fingerprint, info.Filename, info.Size, info.Public, info.AutoUpdate, info.Architecture, info.CreatedAt, info.ExpiresAt, info.Properties)
if err != nil {
- return nil, fmt.Errorf("here: %v: %s", err, info.Fingerprint)
+ return nil, err
}
// Image is in the DB now, don't wipe on-disk files on failure
More information about the lxc-devel
mailing list