From ff38b978e48e11cfd2dc0c3f3b3f0dac0b44d479 Mon Sep 17 00:00:00 2001 From: Cyril Dubuisson Date: Wed, 24 Jul 2019 19:20:09 +0200 Subject: [PATCH] :bug: : manage outputs depending on the version of CLI --- src/main/resources/templates/stack.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/templates/stack.html b/src/main/resources/templates/stack.html index b96184b07..165318fcb 100644 --- a/src/main/resources/templates/stack.html +++ b/src/main/resources/templates/stack.html @@ -194,7 +194,8 @@

Job history

return $.get(`/api/state/${stackId}`) .then(data => { // finding stack output - stack.outputs = data.outputs; + // data.modules[0].outputs for CLI <= 0.11.x + stack.outputs = data.outputs || data.modules[0].outputs; }) .catch(e => { // a 404 means that the stack is new