Skip to content

Commit f217ea5

Browse files
round floor wlh to 3 decimal places (#47)
1 parent 832250c commit f217ea5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cc_sites.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ resource "catalystcenter_floor" "floor" {
6666
parent_id = try(catalystcenter_building.building[each.value.parent_name].id, local.data_source_site_list[each.value.parent_name], data.catalystcenter_site.global.id, null)
6767
floor_number = try(each.value.floor_number, local.defaults.catalyst_center.sites.floors.floor_number, null)
6868
rf_model = try(each.value.rf_model, local.defaults.catalyst_center.sites.floors.rf_model, null)
69-
width = try(each.value.width, local.defaults.catalyst_center.sites.floors.width, null)
70-
length = try(each.value.length, local.defaults.catalyst_center.sites.floors.length, null)
71-
height = try(each.value.height, local.defaults.catalyst_center.sites.floors.height, null)
69+
width = try(floor(each.value.width * 1000 + 0.5) / 1000, local.defaults.catalyst_center.sites.floors.width, null)
70+
length = try(floor(each.value.length * 1000 + 0.5) / 1000, local.defaults.catalyst_center.sites.floors.length, null)
71+
height = try(floor(each.value.height * 1000 + 0.5) / 1000, local.defaults.catalyst_center.sites.floors.height, null)
7272
units_of_measure = try(each.value.units_of_measure, local.defaults.catalyst_center.sites.floors.units_of_measure, null)
7373

7474
depends_on = [catalystcenter_building.building, catalystcenter_credentials_cli.cli_credentials, catalystcenter_credentials_https_read.https_read_credentials, catalystcenter_credentials_https_write.https_write_credentials, catalystcenter_credentials_snmpv3.snmpv3_credentials, catalystcenter_credentials_snmpv2_read.snmpv2_read_credentials, catalystcenter_credentials_snmpv2_write.snmpv2_write_credentials]

0 commit comments

Comments
 (0)