Fix failure when tags are set for Ubuntu 22 generation (#7417)

This commit is contained in:
Vasilii Polikarpov
2023-04-12 14:32:59 +02:00
committed by GitHub
parent f01bed49d5
commit 3220eb4c1b
2 changed files with 14 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ variable "allowed_inbound_ip_addresses" {
default = []
}
variable "azure_tag" {
variable "azure_tags" {
type = map(string)
default = {}
}
@@ -171,7 +171,7 @@ source "azure-arm" "build_vhd" {
vm_size = "${var.vm_size}"
dynamic "azure_tag" {
for_each = var.azure_tag
for_each = var.azure_tags
content {
name = azure_tag.key
value = azure_tag.value