[lxc-devel] [lxd/master] Fix "lxc start" and "lxc stop" options.

stgraber on Github lxc-bot at linuxcontainers.org
Tue Apr 19 17:45:20 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160419/ab7f0df7/attachment.bin>
-------------- next part --------------
From 4fe326a3136c75d1368eb04d782c69353bdcff96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 19 Apr 2016 18:44:49 +0100
Subject: [PATCH] Fix "lxc start" and "lxc stop" options.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/action.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lxc/action.go b/lxc/action.go
index c214ce4..355529a 100644
--- a/lxc/action.go
+++ b/lxc/action.go
@@ -35,9 +35,9 @@ func (c *actionCmd) flags() {
 	if c.hasTimeout {
 		gnuflag.IntVar(&c.timeout, "timeout", -1, i18n.G("Time to wait for the container before killing it."))
 		gnuflag.BoolVar(&c.force, "force", false, i18n.G("Force the container to shutdown."))
-		gnuflag.BoolVar(&c.stateful, "stateful", false, i18n.G("Store the container state (only for stop)."))
-		gnuflag.BoolVar(&c.stateless, "stateless", false, i18n.G("Ignore the container state (only forstart)."))
 	}
+	gnuflag.BoolVar(&c.stateful, "stateful", false, i18n.G("Store the container state (only for stop)."))
+	gnuflag.BoolVar(&c.stateless, "stateless", false, i18n.G("Ignore the container state (only forstart)."))
 }
 
 func (c *actionCmd) run(config *lxd.Config, args []string) error {


More information about the lxc-devel mailing list