Skip to content

Commit

Permalink
fix(install): Add complete install status for user-canceled execution (
Browse files Browse the repository at this point in the history
  • Loading branch information
amolero-nr authored Dec 4, 2023
1 parent 0094b83 commit f716452
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/install/recipe_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ Our Data Privacy Notice: https://newrelic.com/termsandconditions/services-notice

select {
case <-ctx.Done():
i.status.InstallCanceled()
return nil
err = ctx.Err()
i.status.InstallComplete(err)
return err
case err = <-errChan:
if errors.Is(err, types.ErrInterrupt) {
i.status.InstallCanceled()
Expand Down

0 comments on commit f716452

Please sign in to comment.