Merge "Fix api-ref for container execute"

This commit is contained in:
Zuul 2017-11-24 03:11:43 +00:00 committed by Gerrit Code Review
commit 499eb440d7
3 changed files with 9 additions and 4 deletions

View File

@ -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
----------------

View File

@ -1,4 +1,6 @@
{
"output": null,
"exit_code": null,
"url": "tcp://172.16.1.45:2375",
"exec_id": "3c851c568fc9f21bdb77b7ba98eb1c6ae0c901f56dfb1471de4d6af7c73dbf4d"
}

View File

@ -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
}