Skip to content

Commit

Permalink
update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Aug 20, 2024
1 parent a9fdd60 commit 98ec429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/infrastructure_stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
8 changes: 4 additions & 4 deletions internal/datasource/infrastructure_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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,
Expand Down Expand Up @@ -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),
)

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 98ec429

Please sign in to comment.