Skip to content

Commit

Permalink
Merge pull request #124 from whywaita/fix/122-2
Browse files Browse the repository at this point in the history
need to unwrap
  • Loading branch information
whywaita authored Dec 2, 2021
2 parents e03b653 + e9d3df6 commit 356cfaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/runner/runner_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package runner

import (
"context"
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -174,7 +175,7 @@ func (m *Manager) deleteRunner(ctx context.Context, runner datastore.Runner, run
defer teardown()

if err := client.DeleteInstance(ctx, runner.CloudID); err != nil {
if status.Code(err) == codes.NotFound {
if status.Code(errors.Unwrap(err)) == codes.NotFound {
logger.Logf(true, "%s is not found, will ignore from shoes", runner.UUID)
} else {
return fmt.Errorf("failed to delete instance: %w", err)
Expand Down

0 comments on commit 356cfaf

Please sign in to comment.