Skip to content

Commit

Permalink
Revert "Import a resource provisioned with key_protect_id and key_pro…
Browse files Browse the repository at this point in the history
…tect_instance attributes set (IBM-Cloud#5798)"

This reverts commit 2af014a.
  • Loading branch information
Lorna-Kelly committed Dec 12, 2024
1 parent 4390282 commit c63fa12
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions ibm/service/database/resource_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1603,14 +1603,6 @@ func resourceIBMDatabaseInstanceRead(context context.Context, d *schema.Resource
if endpoint, ok := instance.Parameters["service-endpoints"]; ok {
d.Set("service_endpoints", endpoint)
}

if encryptionInstance, ok := instance.Parameters["disk_encryption_instance_crn"]; ok {
d.Set("key_protect_instance", encryptionInstance)
}

if encryptionKey, ok := instance.Parameters["disk_encryption_key_crn"]; ok {
d.Set("key_protect_key", encryptionKey)
}
}

d.Set(flex.ResourceName, *instance.Name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func TestAccIBMDatabaseInstanceElasticsearchPlatinumImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "plan_validation", "deletion_protection"},
"wait_time_minutes", "plan_validation"},
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func TestAccIBMDatabaseInstanceElasticsearchImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "deletion_protection"},
"wait_time_minutes"},
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/database/resource_ibm_database_etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestAccIBMDatabaseInstanceEtcdImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "deletion_protection"},
"wait_time_minutes"},
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func TestAccIBMDatabaseInstancePostgresImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "deletion_protection"},
"wait_time_minutes"},
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestAccIBMDatabaseInstanceRabbitmqImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "deletion_protection"},
"wait_time_minutes"},
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/database/resource_ibm_database_redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestAccIBMDatabaseInstanceRedisImport(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"wait_time_minutes", "deletion_protection"},
"wait_time_minutes"},
},
},
})
Expand Down

0 comments on commit c63fa12

Please sign in to comment.