Skip to content

Commit 3505e87

Browse files
fix linting
1 parent f4189d7 commit 3505e87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cc_fabric.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ resource "catalystcenter_transit_network" "transit" {
4141
routing_protocol_name = try(each.value.type, "") == "IP_BASED_TRANSIT" ? try(each.value.routing_protocol_name, local.defaults.catalyst_center.fabric.transits.routing_protocol_name, null) : null
4242
autonomous_system_number = try(each.value.type, "") == "IP_BASED_TRANSIT" ? try(each.value.autonomous_system_number, local.defaults.catalyst_center.fabric.transits.autonomous_system_number, null) : null
4343
is_multicast_over_transit_enabled = try(each.value.type, "") != "IP_BASED_TRANSIT" ? try(each.value.multicast_over_sda_transit, local.defaults.catalyst_center.fabric.transits.multicast_over_sda_transit, null) : null
44-
control_plane_network_device_ids = try(each.value.type, "") != "IP_BASED_TRANSIT" ? [for device in try(each.value.control_plane_devices, []) : lookup(local.device_name_to_id, device)] : null
44+
control_plane_network_device_ids = try(each.value.type, "") != "IP_BASED_TRANSIT" ? [for device in try(each.value.control_plane_devices, []) : try(local.device_name_to_id[device], null)] : null
4545
}
4646

4747
resource "catalystcenter_fabric_site" "fabric_site" {

0 commit comments

Comments
 (0)