Skip to content

Commit

Permalink
Merge pull request #313 from nitrictech/develop
Browse files Browse the repository at this point in the history
Release - patch fix
  • Loading branch information
jyecusch authored Aug 17, 2022
2 parents ed555fc + 95e16de commit 3dbfad1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/cmd/stack/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,10 @@ var stackUpdateCmd = &cobra.Command{
StartMsg: "Deploying..",
Runner: func(progress output.Progress) error {
d, err = p.Up(progress)
// Write the digest regardless of deployment errors
writeDigest(proj.Name, s.Name, progress, d.Summary)
// Write the digest regardless of deployment errors if available
if d != nil {
writeDigest(proj.Name, s.Name, progress, d.Summary)
}

return err
},
Expand Down Expand Up @@ -224,7 +226,9 @@ nitric stack down -e aws -y`,
StartMsg: "Deleting..",
Runner: func(progress output.Progress) error {
sum, err := p.Down(progress)
writeDigest(proj.Name, s.Name, progress, sum)
if sum != nil {
writeDigest(proj.Name, s.Name, progress, sum)
}
return err
},
StopMsg: "Stack",
Expand Down

0 comments on commit 3dbfad1

Please sign in to comment.