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

qq690388648 on Github lxc-bot at linuxcontainers.org
Wed Feb 8 01:36:22 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 372 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170208/411e5f91/attachment.bin>
-------------- next part --------------
From 4608d66fff7ada9f7723f521baefcc9e902a9815 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: Wed, 8 Feb 2017 09:34:14 +0800
Subject: [PATCH] The 'storageBackend' has already been checked.

The 'storageBackend' has already been checked.
Signed-off-by:sungengze
---
 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