Skip to content

Commit

Permalink
fix(terraform): Handle 403 forbidden error (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya18101 authored Dec 19, 2024
1 parent c7133bb commit 98628cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/terraform_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 98628cf

Please sign in to comment.