Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Mukadam <[email protected]>
  • Loading branch information
hyder committed Oct 4, 2023
1 parent 69d6b99 commit bf3526b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module-network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module "vcn" {
},
local.network_freeform_tags,
)

attached_drg_id = var.drg_id != null ? var.drg_id : (tobool(var.create_drg) ? module.drg[0].drg_id : null)

create_internet_gateway = alltrue([
Expand Down Expand Up @@ -83,8 +83,8 @@ module "drg" {
version = "1.0.5"
compartment_id = coalesce(var.network_compartment_id, local.compartment_id)

drg_id = one([var.drg_id]) # existing DRG ID or null
drg_display_name = coalesce(var.drg_display_name, "oke-${local.state_id}")
drg_id = one([var.drg_id]) # existing DRG ID or null
drg_display_name = coalesce(var.drg_display_name, "oke-${local.state_id}")
drg_vcn_attachments = tobool(var.create_drg) ? { for k, v in module.vcn : k => {
# gets the vcn_id values dynamically from the vcn module
vcn_id : v.vcn_id
Expand Down

0 comments on commit bf3526b

Please sign in to comment.