Skip to content

Commit

Permalink
🐛 : manage outputs depending on the version of CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Jul 25, 2019
1 parent 3f9551c commit ff38b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/templates/stack.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ <h2><span><i class="fas fa-history"></i> Job history</span></h2>
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
Expand Down

0 comments on commit ff38b97

Please sign in to comment.