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:
parent
2d1094c363
commit
f8730d79bd
@ -34,8 +34,10 @@
|
|||||||
|
|
||||||
function onGetContainer(container) {
|
function onGetContainer(container) {
|
||||||
ctrl.container = container.data;
|
ctrl.container = container.data;
|
||||||
|
if (ctrl.container.status !== "Creating") {
|
||||||
zun.logsContainer(ctrl.container.id).then(onGetLogs);
|
zun.logsContainer(ctrl.container.id).then(onGetLogs);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onGetLogs(logs) {
|
function onGetLogs(logs) {
|
||||||
ctrl.logs = logs.data;
|
ctrl.logs = logs.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user