Remove leftovers (#529)
This commit is contained in:
parent
fe777fd9bc
commit
aba728487f
2 changed files with 2 additions and 2 deletions
|
|
@ -496,7 +496,7 @@ func (r *instanceResource) ImportState(ctx context.Context, req resource.ImportS
|
||||||
|
|
||||||
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("project_id"), idParts[0])...)
|
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("project_id"), idParts[0])...)
|
||||||
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("instance_id"), idParts[1])...)
|
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("instance_id"), idParts[1])...)
|
||||||
tflog.Info(ctx, "Postgresql Flex instance state imported")
|
tflog.Info(ctx, "Postgres Flex instance state imported")
|
||||||
}
|
}
|
||||||
|
|
||||||
func mapFields(ctx context.Context, resp *postgresflex.InstanceResponse, model *Model, flavor *flavorModel, storage *storageModel) error {
|
func mapFields(ctx context.Context, resp *postgresflex.InstanceResponse, model *Model, flavor *flavorModel, storage *storageModel) error {
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ func testAccCheckPostgresFlexDestroy(s *terraform.State) error {
|
||||||
|
|
||||||
instancesToDestroy := []string{}
|
instancesToDestroy := []string{}
|
||||||
for _, rs := range s.RootModule().Resources {
|
for _, rs := range s.RootModule().Resources {
|
||||||
if rs.Type != "stackit_postgresqlflex_instance" {
|
if rs.Type != "stackit_postgresflex_instance" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// instance terraform ID: = "[project_id],[instance_id]"
|
// instance terraform ID: = "[project_id],[instance_id]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue