Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Jan 13, 2025
1 parent c31cd8b commit 54673c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/resources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
page_title: "exoscale_database Resource - terraform-provider-exoscale"
subcategory: ""
description: |-
❗This resource is deprecated and being renamed to exoscale_dbaas, do not use❗
❗This resource is deprecated and renamed to exoscale_dbaas, do not use it to create new resources
Manage Exoscale Database Services (DBaaS) https://community.exoscale.com/documentation/dbaas/.
---

# exoscale_database (Resource)

❗This resource is deprecated and being renamed to exoscale_dbaas, do not use❗
❗This resource is deprecated and renamed to exoscale_dbaas, do not use it to create new resources
Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/).

## Example Usage
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_db_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (p *MysqlDatabaseResource) ImportState(ctx context.Context, req resource.Im

resp.Diagnostics.AddError(
"Unexpected Import Identifier",
fmt.Sprintf("Expected import identifier with format: service/database_ame@zone. Got: %q", req.ID),
fmt.Sprintf("Expected import identifier with format: service/database_name@zone. Got: %q", req.ID),
)

return
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_db_pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p *PGDatabaseResource) ImportState(ctx context.Context, req resource.Impor

resp.Diagnostics.AddError(
"Unexpected Import Identifier",
fmt.Sprintf("Expected import identifier with format: service/database_ame@zone. Got: %q", req.ID),
fmt.Sprintf("Expected import identifier with format: service/database_name@zone. Got: %q", req.ID),
)

return
Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/database/resource_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ func (d *DeprecatedServiceResource) Read(ctx context.Context, req resource.ReadR

func (d *DeprecatedServiceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
d.Resource.Schema(ctx, req, resp)
resp.Schema.DeprecationMessage = "This resource is being renamed to exoscale_dbaas, reimport it as such instead"
resp.Schema.MarkdownDescription = "❗This resource is deprecated and being renamed to exoscale_dbaas, do not use❗\n" + resp.Schema.MarkdownDescription
resp.Schema.DeprecationMessage = "This resource is renamed to exoscale_dbaas, reimport it after renaming it"
resp.Schema.MarkdownDescription = "❗This resource is deprecated and renamed to exoscale_dbaas, do not use it to create new resources\n" + resp.Schema.MarkdownDescription
}

func (d *DeprecatedServiceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) {
Expand Down

0 comments on commit 54673c2

Please sign in to comment.