Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: Fixed Auth config diagnostics level (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanenk authored Jun 1, 2022
1 parent 6fe6cc0 commit 9e8be90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func Configure(logger hclog.Logger, providerConfig interface{}) (schema.ClientMe
client.ServicesManager.InitServicesForAccountAndScope(*output.Account, initServices(cloudfrontScopeRegion, awsCfg))
}
if len(client.Accounts) == 0 {
return nil, diags.Add(diag.FromError(errors.New("no accounts instantiated"), diag.INTERNAL))
return nil, diags.Add(diag.FromError(errors.New("no accounts instantiated"), diag.USER))
}
return &client, diags
}
Expand Down

0 comments on commit 9e8be90

Please sign in to comment.