Skip to content

Commit

Permalink
bug(resources): fix error messages that talk about wrong resource
Browse files Browse the repository at this point in the history
  • Loading branch information
EldoranDev committed May 5, 2023
1 parent 031fee5 commit 37f77bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @real-digital/account
* @eldorandev
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Terraform Provider for Cidaas

![GoLang](https://img.shields.io/badge/golang-1.18-blue)
![GoLang](https://img.shields.io/badge/golang-1.19-blue)
![GitHub](https://img.shields.io/github/license/real-digital/terraform-provider-cidaas)

Terraform provider to manage and read resources from cidaas instances.
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/resource_password_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ func (r passwordPolicyResource) Read(ctx context.Context, req resource.ReadReque
policy, err := r.provider.client.GetPasswordPolicy(policyID)
if err != nil {
resp.Diagnostics.AddError(
"Error reading hook",
"Could not read hookID "+policyID+": "+err.Error(),
"Error reading password policy",
"Could not read policy with id "+policyID+": "+err.Error(),
)
return
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_template_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (r templateGroupResource) Read(ctx context.Context, req resource.ReadReques
if err != nil {
resp.Diagnostics.AddError(
"Error reading Template Group",
"Could not read hookID "+groupId+": "+err.Error(),
"Could not read template group with id "+groupId+": "+err.Error(),
)
return
}
Expand Down

0 comments on commit 37f77bc

Please sign in to comment.