[lxc-devel] [lxd/master] lxd/storage: Fix PATCH on storage pools

stgraber on Github lxc-bot at linuxcontainers.org
Sat Jun 30 02:36:57 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180630/8924e70f/attachment.bin>
-------------- next part --------------
From c77ff001b16e480c8918da591b745c786f7900eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 29 Jun 2018 22:34:37 -0400
Subject: [PATCH] lxd/storage: Fix PATCH on storage pools
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4709

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/storage_pools.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage_pools.go b/lxd/storage_pools.go
index 3c0568774..81fb6141d 100644
--- a/lxd/storage_pools.go
+++ b/lxd/storage_pools.go
@@ -377,7 +377,7 @@ func storagePoolPatch(d *Daemon, r *http.Request) Response {
 
 	// Get the existing network
 	_, dbInfo, err := d.cluster.StoragePoolGet(poolName)
-	if dbInfo != nil {
+	if err != nil {
 		return SmartError(err)
 	}
 


More information about the lxc-devel mailing list