Skip to content

Commit 20073ba

Browse files
committed
Fix the jira 13945
1 parent f083a74 commit 20073ba

File tree

1 file changed

+2
-2
lines changed
  • terraform/modules/compute/wls_compute

1 file changed

+2
-2
lines changed

terraform/modules/compute/wls_compute/locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ locals {
2828
db_options = try(lookup(data.oci_database_db_systems.ocidb_db_systems[0].db_systems[0], "db_system_options", []), [])
2929
db_storage_management = try(lookup(local.db_options[0], "storage_management", "ASM"), "ASM")
3030

31-
is_db_deleted = local.apply_JRF ? (local.is_atp_db ? (data.oci_database_autonomous_database.atp_db[0].id == null ? true : false) : (data.oci_database_database.ocidb_database[0].id == null ? true : false)) : false
31+
is_db_deleted = local.apply_JRF ? (local.is_atp_db ? (try(data.oci_database_autonomous_database.atp_db[0].id, null) == null ? true : false) : (try(data.oci_database_database.ocidb_database[0].id, null) == null ? true : false)) : false
3232

33-
}
33+
}

0 commit comments

Comments
 (0)