Skip to content

Commit

Permalink
fix: availability zone data type (#275)
Browse files Browse the repository at this point in the history
# Pull Request

## Issue

Azure/ALZ-Bicep#939

## Description

Fix the data type of availability zones as Bicep is expecting an array
of strings

## License

By submitting this pull request, I confirm that my contribution is made
under the terms of the projects associated license.
  • Loading branch information
jaredfholgate authored Jan 14, 2025
1 parent 826144e commit 01cff4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ALZ/Private/Config-Helpers/Get-AzureRegionData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module "regions" {
locals {
regions = { for region in module.regions.regions_by_name : region.name => {
display_name = region.display_name
zones = region.zones == null ? [] : region.zones
zones = region.zones == null ? [] : [for zone in region.zones : tostring(zone)]
}
}
}
Expand Down

0 comments on commit 01cff4e

Please sign in to comment.