Skip to content

Commit

Permalink
fix - network_groups description
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaciejc committed Apr 29, 2024
1 parent 7f8511b commit 40d8c2d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fmc_objects.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ locals {
for object in try(domains.objects.network_groups, []) :
{
name = object.name
description = can(object.description)
description = try(object.description, local.defaults.fmc.domains.objects.network_groups.description, null)
objects = try(object.objects, [])
literals = try(object.literals, [])
} if !contains(local.res_networkgroups_l1_hlp[domains.name][object.name], false)
Expand All @@ -189,7 +189,7 @@ locals {
for object in try(domains.objects.network_groups, []) :
{
name = object.name
description = can(object.description)
description = try(object.description, local.defaults.fmc.domains.objects.network_groups.description, null)
objects = try(object.objects, [])
literals = try(object.literals, [])
} if !contains(keys(local.map_networkobjects_l2), object.name) && !contains(local.res_networkgroups_l2_hlp[domains.name][object.name], false)
Expand All @@ -201,7 +201,7 @@ locals {
for object in try(domains.objects.network_groups, []) :
{
name = object.name
description = can(object.description)
description = try(object.description, local.defaults.fmc.domains.objects.network_groups.description, null)
objects = try(object.objects, [])
literals = try(object.literals, [])
} if !contains(keys(local.map_networkobjects_l3), object.name) && !contains(local.res_networkgroups_l3_hlp[domains.name][object.name], false)
Expand All @@ -213,7 +213,7 @@ locals {
for object in try(domains.objects.network_groups, []) :
{
name = object.name
description = can(object.description)
description = try(object.description, local.defaults.fmc.domains.objects.network_groups.description, null)
objects = try(object.objects, [])
literals = try(object.literals, [])
} if !contains(keys(local.map_networkobjects_l4), object.name) && !contains(local.res_networkgroups_l4_hlp[domains.name][object.name], false)
Expand All @@ -225,7 +225,7 @@ locals {
for object in try(domains.objects.network_groups, []) :
{
name = object.name
description = can(object.description)
description = try(object.description, local.defaults.fmc.domains.objects.network_groups.description, null)
objects = try(object.objects, [])
literals = try(object.literals, [])
} if !contains(keys(local.map_networkobjects_l5), object.name) && !contains(local.res_networkgroups_l5_hlp[domains.name][object.name], false)
Expand Down Expand Up @@ -256,7 +256,7 @@ resource "fmc_network_group_objects" "networkgroup_l1" {
}
}
# Optional
description = try(each.value.description, local.defaults.fmc.domains.objects.networkgroups.description, null)
description = each.value.description

lifecycle {
create_before_destroy = false
Expand Down Expand Up @@ -287,7 +287,7 @@ resource "fmc_network_group_objects" "networkgroup_l2" {
}
}
# Optional
description = try(each.value.description, local.defaults.fmc.domains.objects.networkgroups.description, null)
description = each.value.description
depends_on = [
fmc_network_group_objects.networkgroup_l1
]
Expand Down Expand Up @@ -323,7 +323,7 @@ resource "fmc_network_group_objects" "networkgroup_l3" {
}

# Optional
description = try(each.value.description, local.defaults.fmc.domains.objects.networkgroups.description, null)
description = each.value.description
depends_on = [
fmc_network_group_objects.networkgroup_l1,
fmc_network_group_objects.networkgroup_l2
Expand Down Expand Up @@ -361,7 +361,7 @@ resource "fmc_network_group_objects" "networkgroup_l4" {
}

# Optional
description = try(each.value.description, local.defaults.fmc.domains.objects.networkgroups.description, null)
description = each.value.description
depends_on = [
fmc_network_group_objects.networkgroup_l1,
fmc_network_group_objects.networkgroup_l2,
Expand Down Expand Up @@ -401,7 +401,7 @@ resource "fmc_network_group_objects" "networkgroup_l5" {
}

# Optional
description = try(each.value.description, local.defaults.fmc.domains.objects.networkgroups.description, null)
description = each.value.description
depends_on = [
fmc_network_group_objects.networkgroup_l1,
fmc_network_group_objects.networkgroup_l2,
Expand Down

0 comments on commit 40d8c2d

Please sign in to comment.