Skip to content

Commit

Permalink
trivial. minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Jun 22, 2023
1 parent 6fc105a commit ea65d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/usecase/cloud-account.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ func (u *CloudAccountUsecase) DeleteForce(ctx context.Context, cloudAccountId uu
return err
}

if cloudAccount.Status != domain.CloudAccountStatus_CREATE_ERROR {
if !strings.Contains(cloudAccount.Name, "INCLUSTER") &&
cloudAccount.Status != domain.CloudAccountStatus_CREATE_ERROR {
return fmt.Errorf("The status is not CREATE_ERROR. %s", cloudAccount.Status)
}

Expand Down

0 comments on commit ea65d0c

Please sign in to comment.