[lxc-devel] [lxd/master] Fix initial exec size
stgraber on Github
lxc-bot at linuxcontainers.org
Tue Mar 29 04:48:36 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/20160329/d1f5a99d/attachment.bin>
-------------- next part --------------
From baa844833a47a2eb2471fe43ca1c3aa71327756b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 29 Mar 2016 00:48:10 -0400
Subject: [PATCH] Fix initial exec size
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>
---
client.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/client.go b/client.go
index e958cf8..7a1e163 100644
--- a/client.go
+++ b/client.go
@@ -1409,6 +1409,11 @@ func (c *Client) Exec(name string, cmd []string, env map[string]string,
"environment": env,
}
+ if width > 0 && height > 0 {
+ body["width"] = width
+ body["height"] = height
+ }
+
resp, err := c.post(fmt.Sprintf("containers/%s/exec", name), body, Async)
if err != nil {
return -1, err
More information about the lxc-devel
mailing list