[lxc-devel] [lxd/master] lxc/action: Also add --console to restart
stgraber on Github
lxc-bot at linuxcontainers.org
Thu Jun 18 14:21:10 UTC 2020
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/20200618/f423eaa6/attachment.bin>
-------------- next part --------------
From 33837cfbc7dd076e104ecb3ae79b61c720622714 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 18 Jun 2020 10:20:53 -0400
Subject: [PATCH] lxc/action: Also add --console to restart
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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lxc/action.go b/lxc/action.go
index 5319fa5363..bf64465f3d 100644
--- a/lxc/action.go
+++ b/lxc/action.go
@@ -116,6 +116,8 @@ func (c *cmdAction) Command(action string) *cobra.Command {
} else if action == "start" {
cmd.Flags().BoolVar(&c.flagStateless, "stateless", false, i18n.G("Ignore the instance state"))
cmd.Flags().BoolVar(&c.flagConsole, "console", false, i18n.G("Immediately attach to the console"))
+ } else if action == "restart" {
+ cmd.Flags().BoolVar(&c.flagConsole, "console", false, i18n.G("Immediately attach to the console"))
}
if shared.StringInSlice(action, []string{"restart", "stop"}) {
More information about the lxc-devel
mailing list