[lxc-devel] [lxd/master] The storageBackend has already been check.

qq690388648 on Github lxc-bot at linuxcontainers.org
Mon Feb 6 06:52:24 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170206/1ee4f2e0/attachment.bin>
-------------- next part --------------
From c8138191fb8e507fb8c401076fcd7386bb0a896e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E5=BA=9A=E6=B3=BD?= <690388648 at qq.com>
Date: Mon, 6 Feb 2017 14:50:39 +0800
Subject: [PATCH] The storageBackend has already been check.

---
 lxd/main_init.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lxd/main_init.go b/lxd/main_init.go
index 36b0114..a2fcbdc 100644
--- a/lxd/main_init.go
+++ b/lxd/main_init.go
@@ -359,10 +359,6 @@ they otherwise would.
 		}
 	}
 
-	if !shared.StringInSlice(storageBackend, []string{"dir", "zfs"}) {
-		return fmt.Errorf("Invalid storage backend: %s", storageBackend)
-	}
-
 	// Unset all storage keys, core.https_address and core.trust_password
 	for _, key := range []string{"storage.zfs_pool_name", "core.https_address", "core.trust_password"} {
 		_, err = c.SetServerConfig(key, "")


More information about the lxc-devel mailing list