Don't get container's logs if it is creating

Server might return a 400 error on getting logs on container with
"Creating" state.

Change-Id: I0bc16c15ca91698713a98368d3263ac8b8764536
This commit is contained in:
Hongbin Lu 2017-04-05 20:30:58 +00:00
parent 2d1094c363
commit f8730d79bd

View File

@ -34,7 +34,9 @@
function onGetContainer(container) {
ctrl.container = container.data;
zun.logsContainer(ctrl.container.id).then(onGetLogs);
if (ctrl.container.status !== "Creating") {
zun.logsContainer(ctrl.container.id).then(onGetLogs);
}
}
function onGetLogs(logs) {