Skip to content

Commit 7756534

Browse files
fix multicast DS; fix empty rma (#101)
1 parent f0287d4 commit 7756534

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cc_fabric.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ resource "catalystcenter_fabric_multicast_virtual_networks" "multicast" {
905905
if contains(local.sites, fabric_site) && length(config.virtual_networks) > 0
906906
}
907907

908-
fabric_id = try(local.combined_fabric_id_list[each.key].id, null)
908+
fabric_id = try(local.combined_fabric_id_list[each.key], null)
909909

910910
virtual_networks = each.value.virtual_networks
911911

cc_rma.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ resource "catalystcenter_device_replacement_workflow" "rma" {
5050
&& try(device.serial_number, null) != null
5151
&& contains(local.sites, try(device.site, "NONE"))
5252
&& try(data.catalystcenter_device_detail.rma_device[device.name].serial_number, null) != null
53-
&& device.serial_number != data.catalystcenter_device_detail.rma_device[device.name].serial_number
53+
&& try(device.serial_number, "") != try(data.catalystcenter_device_detail.rma_device[device.name].serial_number, "")
5454
}
5555

5656
faulty_device_serial_number = data.catalystcenter_device_detail.rma_device[each.key].serial_number

0 commit comments

Comments
 (0)