diff --git a/builder/azure/arm/config.go b/builder/azure/arm/config.go index ed088b489..6a659988b 100644 --- a/builder/azure/arm/config.go +++ b/builder/azure/arm/config.go @@ -245,7 +245,7 @@ type Config struct { // containing a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - AzureTag []hcl2template.KeyValues `mapstructure:"azure_tag" required:"false"` + AzureTag hcl2template.KeyValues `mapstructure:"azure_tag" required:"false"` // Resource group under which the final artifact will be stored. ResourceGroupName string `mapstructure:"resource_group_name"` // Storage account under which the final artifact will be stored. diff --git a/builder/hyperone/config.go b/builder/hyperone/config.go index 07082f886..e19c4abdd 100644 --- a/builder/hyperone/config.go +++ b/builder/hyperone/config.go @@ -67,7 +67,7 @@ type Config struct { // containing a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - ImageTag []hcl2template.KeyValues `mapstructure:"image_tag" required:"false"` + ImageTag hcl2template.KeyValues `mapstructure:"image_tag" required:"false"` // The service of the resulting image. ImageService string `mapstructure:"image_service" required:"false"` // ID or name of the type this server should be created with. @@ -81,7 +81,7 @@ type Config struct { // a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - VmTag []hcl2template.KeyValues `mapstructure:"vm_tag" required:"false"` + VmTag hcl2template.KeyValues `mapstructure:"vm_tag" required:"false"` // The name of the created disk. DiskName string `mapstructure:"disk_name" required:"false"` // The type of the created disk. Defaults to ssd. diff --git a/builder/tencentcloud/cvm/run_config.go b/builder/tencentcloud/cvm/run_config.go index 96fe7956a..f1f840568 100644 --- a/builder/tencentcloud/cvm/run_config.go +++ b/builder/tencentcloud/cvm/run_config.go @@ -88,7 +88,7 @@ type TencentCloudRunConfig struct { // containing a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - RunTag []hcl2template.KeyValues `mapstructure:"run_tag" required:"false"` + RunTag hcl2template.KeyValues `mapstructure:"run_tag" required:"false"` // Communicator settings Comm communicator.Config `mapstructure:",squash"` diff --git a/builder/triton/source_machine_config.go b/builder/triton/source_machine_config.go index 385690c53..de370f779 100644 --- a/builder/triton/source_machine_config.go +++ b/builder/triton/source_machine_config.go @@ -59,7 +59,7 @@ type SourceMachineConfig struct { // singular block containing a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - MachineTag []hcl2template.KeyValues `mapstructure:"source_machine_tag" required:"false"` + MachineTag hcl2template.KeyValues `mapstructure:"source_machine_tag" required:"false"` // Whether or not the firewall // of the VM used to create an image of is enabled. The Triton firewall only // filters inbound traffic to the VM. All outbound traffic is always allowed. diff --git a/builder/triton/target_image_config.go b/builder/triton/target_image_config.go index 1e545ec75..5b18854b4 100644 --- a/builder/triton/target_image_config.go +++ b/builder/triton/target_image_config.go @@ -41,7 +41,7 @@ type TargetImageConfig struct { // containing a key and a value field. In HCL2 mode the // [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) // will allow you to create those programatically. - ImageTag []hcl2template.KeyValues `mapstructure:"image_tag" required:"false"` + ImageTag hcl2template.KeyValues `mapstructure:"image_tag" required:"false"` } // Prepare performs basic validation on a TargetImageConfig struct.