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,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user