The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7549

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 33837cfbc7dd076e104ecb3ae79b61c720622714 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@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 <stgra...@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"}) {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to