Skip to content

Commit 6b84a48

Browse files
authored
fix: fixes condition when bastion/operator are set to false and no (#585)
ip addresses are provided Resolves #584 Signed-off-by: Ali Mukadam <[email protected]> Signed-off-by: Ali Mukadam <[email protected]>
1 parent 269d3fd commit 6b84a48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ locals {
88
var.tenancy_id, var.tenancy_ocid,
99
)
1010

11-
bastion_public_ip = var.create_bastion_host == true ? module.bastion[0].bastion_public_ip : coalesce(var.bastion_public_ip, "")
12-
operator_private_ip = var.create_operator == true ? module.operator[0].operator_private_ip : coalesce(var.operator_private_ip, "")
11+
bastion_public_ip = var.create_bastion_host == true ? module.bastion[0].bastion_public_ip : var.bastion_public_ip != "" ? var.bastion_public_ip: ""
12+
operator_private_ip = var.create_operator == true ? module.operator[0].operator_private_ip : var.operator_private_ip !="" ? var.operator_private_ip: ""
1313
operator_instance_principal_group_name = var.create_operator == true ? module.operator[0].operator_instance_principal_group_name : ""
1414

1515
vcn_id = var.create_vcn == true ? module.vcn[0].vcn_id : coalesce(var.vcn_id, try(data.oci_core_vcns.vcns[0].virtual_networks[0].id,""))

0 commit comments

Comments
 (0)