From 961d5f92eea0a8b8ed5cb92a33847f66b1b259d9 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Thu, 23 Nov 2017 16:31:09 +0800 Subject: [PATCH] Fix api-ref for container execute Change-Id: I7a912f99df3f303066334b9cf6b59ae75222b178 --- api-ref/source/containers.inc | 7 ++++--- api-ref/source/samples/container-execute-resp-2.json | 2 ++ api-ref/source/samples/container-execute-resp.json | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api-ref/source/containers.inc b/api-ref/source/containers.inc index 84ca6ba89..0ed69a487 100644 --- a/api-ref/source/containers.inc +++ b/api-ref/source/containers.inc @@ -1035,9 +1035,10 @@ Response .. note:: - There are two possible responses. If the run parameter is set to true, - the output will be {"output": "...", "exit_code": "..."}. Otherwise, - the output will be {"exec_id": "...", "url": "..."}. + If the run parameter is set to true, the output will be + {"output": "...", "exit_code": "...", "exec_id": None, "url": None}. + Otherwise, the output will be + {"output": None, "exit_code": None, "exec_id": "...", "url": "..."}. Response Example ---------------- diff --git a/api-ref/source/samples/container-execute-resp-2.json b/api-ref/source/samples/container-execute-resp-2.json index a2332df49..01bfd87e4 100644 --- a/api-ref/source/samples/container-execute-resp-2.json +++ b/api-ref/source/samples/container-execute-resp-2.json @@ -1,4 +1,6 @@ { + "output": null, + "exit_code": null, "url": "tcp://172.16.1.45:2375", "exec_id": "3c851c568fc9f21bdb77b7ba98eb1c6ae0c901f56dfb1471de4d6af7c73dbf4d" } diff --git a/api-ref/source/samples/container-execute-resp.json b/api-ref/source/samples/container-execute-resp.json index 3394f7ad2..33954ec6f 100644 --- a/api-ref/source/samples/container-execute-resp.json +++ b/api-ref/source/samples/container-execute-resp.json @@ -1,4 +1,6 @@ { "output": "Mon Oct 9 09:09:32 UTC 2017\n", - "exit_code": 0 + "exit_code": 0, + "exec_id": null, + "url": null }