Skip to content

Commit b49e827

Browse files
Update error messages in HCP provider config
This commit updates the error messages to indicate that a specific project, rather than an organization, should be configured in the HCP provider config block. These changes affect both the provider.go and project_helpers.go files.
1 parent 7bdb852 commit b49e827

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/provider/project_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func getProjectFromCredentialsFramework(ctx context.Context, client *clients.Cli
3636
return nil, diags
3737
}
3838
if orgLen > 1 {
39-
diags.AddError("There is more than one organization associated with the configured credentials.", "Please configure a specific organization in the HCP provider config block.")
39+
diags.AddError("There is more than one organization associated with the configured credentials.", "Please configure a specific project in the HCP provider config block.")
4040
return nil, diags
4141
}
4242

internal/providersdkv2/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func getProjectFromCredentials(ctx context.Context, client *clients.Client) (pro
221221
diags = append(diags, diag.Diagnostic{
222222
Severity: diag.Error,
223223
Summary: "There is more than one organization associated with the configured credentials.",
224-
Detail: "Please configure a specific organization in the HCP provider config block",
224+
Detail: "Please configure a specific project in the HCP provider config block",
225225
})
226226
return nil, diags
227227
}

0 commit comments

Comments
 (0)