From 4a83ee8de5e1b2137de90783687842632732fd3d Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 19 Dec 2024 19:34:44 +0530 Subject: [PATCH] fix(terraform): Handle 403 forbidden error --- internal/cli/terraform_fetcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/terraform_fetcher.go b/internal/cli/terraform_fetcher.go index 7de5a094..de1931b9 100644 --- a/internal/cli/terraform_fetcher.go +++ b/internal/cli/terraform_fetcher.go @@ -475,9 +475,9 @@ func (f *promptScreenRendererResourceFetcher) FetchData(ctx context.Context) (im var data importDataList _, err := f.api.Prompt.ReadRendering(ctx, "login-id", "login-id") - // Checking for the ACUL enabled feature. + // Checking for the forbidden scenario. if err != nil { - if strings.Contains(err.Error(), "403 Forbidden: This tenant does not have Advanced Customizations enabled") { + if strings.Contains(err.Error(), "403 Forbidden") { return nil, nil }