From 98ec429176498dca031c6db17aa42fdcd28a09e4 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Tue, 20 Aug 2024 12:37:54 +0200 Subject: [PATCH] update messages --- docs/data-sources/infrastructure_stack.md | 4 ++-- internal/datasource/infrastructure_stack.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/data-sources/infrastructure_stack.md b/docs/data-sources/infrastructure_stack.md index 5614499..346e0e5 100644 --- a/docs/data-sources/infrastructure_stack.md +++ b/docs/data-sources/infrastructure_stack.md @@ -3,12 +3,12 @@ page_title: "plural_infrastructure_stack Data Source - terraform-provider-plural" subcategory: "" description: |- - PR automation data source. + Stack data source. --- # plural_infrastructure_stack (Data Source) -PR automation data source. +Stack data source. diff --git a/internal/datasource/infrastructure_stack.go b/internal/datasource/infrastructure_stack.go index b575664..bbdfae1 100644 --- a/internal/datasource/infrastructure_stack.go +++ b/internal/datasource/infrastructure_stack.go @@ -20,7 +20,7 @@ func NewInfrastructureStackDataSource() datasource.DataSource { return &InfrastructureStackDataSource{} } -// InfrastructureStackDataSource defines the PR automation data source implementation. +// InfrastructureStackDataSource defines the stack data source implementation. type InfrastructureStackDataSource struct { client *client.Client } @@ -31,7 +31,7 @@ func (r *InfrastructureStackDataSource) Metadata(_ context.Context, req datasour func (r *InfrastructureStackDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "PR automation data source.", + MarkdownDescription: "Stack data source.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Optional: true, @@ -81,7 +81,7 @@ func (r *InfrastructureStackDataSource) Configure(_ context.Context, req datasou data, ok := req.ProviderData.(*common.ProviderData) if !ok { resp.Diagnostics.AddError( - "Unexpected PR Automation Resource Configure Type", + "Unexpected Infrastructure Stack Resource Configure Type", fmt.Sprintf("Expected *common.ProviderData, got: %T. Please report this issue to the provider developers.", req.ProviderData), ) @@ -117,7 +117,7 @@ func (r *InfrastructureStackDataSource) Read(ctx context.Context, req datasource //} if fragment == nil { - resp.Diagnostics.AddError("Client Error", "Unable to read PR automation, see warnings for more information") + resp.Diagnostics.AddError("Client Error", "Unable to read stack, see warnings for more information") return }