Skip to content

Commit a41ddb0

Browse files
authored
Fix the jira 13945 (#216)
Fix the connection string provisioning issues 1. Created JRF instance with rac database without providing db connecting string. 2. Created JRF instance with rac database with providing db connect string.
1 parent ca44e31 commit a41ddb0

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)