[lxc-devel] [lxd/master] lxd/images fix compressErr return
joelhockey on Github
lxc-bot at linuxcontainers.org
Fri May 24 03:00:40 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 353 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190523/7b306ae9/attachment.bin>
-------------- next part --------------
From 1aaf40c9990e273c4444d2695cbc9808485b825b Mon Sep 17 00:00:00 2001
From: Joel Hockey <joel.hockey at gmail.com>
Date: Thu, 23 May 2019 19:54:21 -0700
Subject: [PATCH] lxd/images fix compressErr return
Signed-off-by: Joel Hockey <joelhockey at chromium.org>
---
lxd/images.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxd/images.go b/lxd/images.go
index 5753ba5342..8342a9e4d2 100644
--- a/lxd/images.go
+++ b/lxd/images.go
@@ -274,7 +274,7 @@ func imgPostContInfo(d *Daemon, r *http.Request, req api.ImagesPost, op *operati
return nil, err
}
if compressErr != nil {
- return nil, err
+ return nil, compressErr
}
imageFile.Close()
More information about the lxc-devel
mailing list