[lxc-devel] [lxd/master] Fix flag name in init error message

corburn on Github lxc-bot at linuxcontainers.org
Wed Aug 3 14:59:20 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 350 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160803/e6dc2460/attachment.bin>
-------------- next part --------------
From dd82fcb50dbec101a9816de08e42a23696cf5a0b Mon Sep 17 00:00:00 2001
From: Jason Travis <jtravis at tgen.org>
Date: Wed, 3 Aug 2016 07:47:58 -0700
Subject: [PATCH] Fix flag name in init error message

Signed-off-by: Jason Travis <jasontravis at nau.edu>
---
 lxd/main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lxd/main.go b/lxd/main.go
index 4eb4372..5749177 100644
--- a/lxd/main.go
+++ b/lxd/main.go
@@ -736,13 +736,13 @@ func cmdInit() error {
 
 		if *argStorageBackend == "dir" {
 			if *argStorageCreateLoop != -1 || *argStorageCreateDevice != "" || *argStoragePool != "" {
-				return fmt.Errorf("None of --storage-pool, --storage-create-device or --storage-create-pool may be used with the 'dir' backend.")
+				return fmt.Errorf("None of --storage-pool, --storage-create-device or --storage-create-loop may be used with the 'dir' backend.")
 			}
 		}
 
 		if *argStorageBackend == "zfs" {
 			if *argStorageCreateLoop != -1 && *argStorageCreateDevice != "" {
-				return fmt.Errorf("Only one of --storage-create-device or --storage-create-pool can be specified with the 'zfs' backend.")
+				return fmt.Errorf("Only one of --storage-create-device or --storage-create-loop can be specified with the 'zfs' backend.")
 			}
 
 			if *argStoragePool == "" {


More information about the lxc-devel mailing list