From ea65d0c2a7e0bd7996e5b39ef5768ef35a0d7988 Mon Sep 17 00:00:00 2001 From: Taekyu Date: Thu, 22 Jun 2023 10:28:53 +0900 Subject: [PATCH] trivial. minor fix. --- internal/usecase/cloud-account.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/usecase/cloud-account.go b/internal/usecase/cloud-account.go index b9548271..337f5dfd 100644 --- a/internal/usecase/cloud-account.go +++ b/internal/usecase/cloud-account.go @@ -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) }