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

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) ===
Fixes #5192.

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From 292fb931e2cbcc24a79b44a3ca1e8717a815f8b0 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanay...@canonical.com>
Date: Wed, 24 Oct 2018 12:01:14 +0200
Subject: [PATCH] Prefix the container name with the project name when invoking
 forkconsole

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
---
 lxd/container_lxc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 1d13d0d85e..783e5ad5d3 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -5943,7 +5943,7 @@ func (c *containerLXC) Console(terminal *os.File) 
*exec.Cmd {
        args := []string{
                c.state.OS.ExecPath,
                "forkconsole",
-               c.name,
+               projectPrefix(c.Project(), c.Name()),
                c.state.OS.LxcPath,
                filepath.Join(c.LogPath(), "lxc.conf"),
                "tty=0",
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to