Skip to content

Commit

Permalink
schema compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Parafiniuk committed Feb 13, 2025
1 parent 423df6a commit bf052e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions meraki_devices.tf
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ locals {
for device in try(network.devices, []) : {
serial = meraki_device.device["${organization.name}/${network.name}/devices/${device.name}"].serial

data = try(device.cellular.gateway.lan, null)
} if try(device.cellular.gateway.lan, null) != null
data = try(device.cellular_gateway.lan, null)
} if try(device.cellular_gateway.lan, null) != null
] if try(organization.networks, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
Expand All @@ -347,8 +347,8 @@ locals {
for device in try(network.devices, []) : {
serial = meraki_device.device["${organization.name}/${network.name}/devices/${device.name}"].serial

data = try(device.cellular.gateway.port_forwarding_rules, null)
} if try(device.cellular.gateway.lan, null) != null
data = try(device.cellular_gateway.port_forwarding_rules, null)
} if try(device.cellular_gateway.lan, null) != null
] if try(organization.networks, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
Expand Down
16 changes: 8 additions & 8 deletions meraki_networks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ locals {
for network in try(organization.networks, []) : {
network_id = meraki_network.network["${organization.name}/${network.name}"].id

data = try(network.cellular.gateway.dhcp, null)
} if try(network.cellular.gateway.dhcp, null) != null
data = try(network.cellular_gateway.dhcp, null)
} if try(network.cellular_gateway.dhcp, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
])
Expand All @@ -250,8 +250,8 @@ locals {
for network in try(organization.networks, []) : {
network_id = meraki_network.network["${organization.name}/${network.name}"].id

data = try(network.cellular.gateway.subnet_pool, null)
} if try(network.cellular.gateway.subnet_pool, null) != null
data = try(network.cellular_gateway.subnet_pool, null)
} if try(network.cellular_gateway.subnet_pool, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
])
Expand All @@ -274,8 +274,8 @@ locals {
for network in try(organization.networks, []) : {
network_id = meraki_network.network["${organization.name}/${network.name}"].id

data = try(network.cellular.gateway.uplink, null)
} if try(network.cellular.gateway.uplink, null) != null
data = try(network.cellular_gateway.uplink, null)
} if try(network.cellular_gateway.uplink, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
])
Expand All @@ -298,8 +298,8 @@ locals {
for network in try(organization.networks, []) : {
network_id = meraki_network.network["${organization.name}/${network.name}"].id

data = try(network.cellular.gateway.connectivity_monitoring_destinations, null)
} if try(network.cellular.gateway.connectivity_monitoring_destinations, null) != null
data = try(network.cellular_gateway.connectivity_monitoring_destinations, null)
} if try(network.cellular_gateway.connectivity_monitoring_destinations, null) != null
] if try(domain.organizations, null) != null
] if try(local.meraki.domains, null) != null
])
Expand Down

0 comments on commit bf052e3

Please sign in to comment.