Skip to content

Commit

Permalink
fix(compute/deploy): only cleanup service if there is an ID (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist authored Nov 2, 2023
1 parent 72e20b0 commit df74538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/compute/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (c *DeployCommand) Exec(in io.Reader, out io.Writer) (err error) {

undoStack := undo.NewStack()
undoStack.Push(func() error {
if noExistingService {
if noExistingService && serviceID != "" {
return c.CleanupNewService(serviceID, manifestFilename, out)
}
return nil
Expand Down

0 comments on commit df74538

Please sign in to comment.