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

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) ===
Signed-off-by: Stéphane Graber <[email protected]>
From 8661a5d35d55855ecab544080645af1126283ee5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]>
Date: Mon, 31 Jul 2017 17:59:19 -0400
Subject: [PATCH] Don't use un-initialized structs in import
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <[email protected]>
---
 lxd/api_internal.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/api_internal.go b/lxd/api_internal.go
index a41746ff5..09c49da3f 100644
--- a/lxd/api_internal.go
+++ b/lxd/api_internal.go
@@ -204,7 +204,7 @@ func internalImport(d *Daemon, r *http.Request) Response {
 
        if poolErr == NoSuchObjectError {
                // Create the storage pool db entry if it doesn't exist.
-               err := storagePoolDBCreate(d, containerPoolName, 
pool.Description, backup.Pool.Driver, backup.Pool.Config)
+               err := storagePoolDBCreate(d, containerPoolName, "", 
backup.Pool.Driver, backup.Pool.Config)
                if err != nil {
                        return SmartError(err)
                }
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to