The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4711

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) ===
Closes #4709

Signed-off-by: Stéphane Graber <[email protected]>
From c77ff001b16e480c8918da591b745c786f7900eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]>
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 <[email protected]>
---
 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)
        }
 
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to