[lxc-devel] [lxd/master] lxd/storage: Fix DeleteImage return value

monstermunchkin on Github lxc-bot at linuxcontainers.org
Thu Nov 21 15:12:40 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 415 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191121/bbb57082/attachment.bin>
-------------- next part --------------
From e37946085db288928907bf1035451d009f21ef0a Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 21 Nov 2019 15:50:02 +0100
Subject: [PATCH] lxd/storage: Fix DeleteImage return value

This fixes the return value of the DeleteImage function.

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 lxd/storage/backend_lxd.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage/backend_lxd.go b/lxd/storage/backend_lxd.go
index 14e72c511f..757f23e55c 100644
--- a/lxd/storage/backend_lxd.go
+++ b/lxd/storage/backend_lxd.go
@@ -906,7 +906,7 @@ func (b *lxdBackend) DeleteImage(fingerprint string, op *operations.Operation) e
 		return err
 	}
 
-	return ErrNotImplemented
+	return nil
 }
 
 // CreateCustomVolume creates an empty custom volume.


More information about the lxc-devel mailing list