The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4926
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) === Closes #4922 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 915772166dffbca79c85e72f304db7070a2c5aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Wed, 15 Aug 2018 14:18:32 -0400 Subject: [PATCH] doc: Add example of exec with record-output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4922 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- doc/rest-api.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/rest-api.md b/doc/rest-api.md index 5e69be365c..650baf84c9 100644 --- a/doc/rest-api.md +++ b/doc/rest-api.md @@ -892,6 +892,16 @@ Return (with wait-for-websocket=true and interactive=true): } } +Return (with interactive=false and record-output=true): + + { + "output": { + "1": "/1.0/containers/example/logs/exec_b0f737b4-2c8a-4edf-a7c1-4cc7e4e9e155.stdout", + "2": "/1.0/containers/example/logs/exec_b0f737b4-2c8a-4edf-a7c1-4cc7e4e9e155.stderr" + }, + "return": 0 + } + When the exec command finishes, its exit status is available from the operation's metadata:
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel