packer-cn/builder
Braunson b2047bd938
Put the correct AzureTags type in StateBag (#10014)
Azure expects the tags format to use a pointer to the string for the map value.
The configuration from the builder is not a pointer so when storing in the state bag for
reference in later execution we convert it when creating the StateBag.

Fixes #10012 and #10013.

* Use the MapToAzureTags helper and error check in resource group creation

* Added test case for tag values not using a pointer

* test/azure/arm: Add test to verify tags stored in state

* test/azure/arm: Add azure_tags to existing acceptance test for Linux

Test Before Fix
```
--- FAIL: TestBuilderAcc_ManagedDisk_Linux (1.81s)
panic: interface conversion: interface {} is map[string]string, not map[string]*string [recovered]
        panic: interface conversion: interface {} is map[string]string, not map[string]*string
FAIL    github.com/hashicorp/packer/builder/azure/arm   1.822s

```

Test After Fix
```
2020/09/29 17:23:03 ui: ==> test: Resource group has been deleted.
--- PASS: TestBuilderAcc_ManagedDisk_Linux (517.41s)
    PASS
    ok      github.com/hashicorp/packer/builder/azure/arm   517.426s
```

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-09-30 09:55:46 -04:00
..
alicloud/ecs Remove comments about sharing with catsby 2020-09-03 09:14:40 -05:00
amazon switch to using aws base config, which means we're using code tested and maitnained by the terraform crowd. 2020-09-29 14:26:38 -07:00
azure Put the correct AzureTags type in StateBag (#10014) 2020-09-30 09:55:46 -04:00
cloudstack Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder (#9874) 2020-09-14 12:24:01 +02:00
digitalocean ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
docker Interpolate vagrantfile_template on Vagrant post-processor (#9923) 2020-09-16 10:08:44 +02:00
file create parent dirs of target (#9452) 2020-06-18 10:25:04 +02:00
googlecompute Fix static check issues SA1019 for googlecompute plugins (#9950) 2020-09-17 10:14:41 +02:00
hcloud ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
hyperone ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
hyperv implement on hyperv 2020-09-14 12:16:56 -07:00
jdcloud ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
linode ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
lxc HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
lxd HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
ncloud ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
null ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
oneandone Fix linting issues for SA6005 check (#9854) 2020-08-31 15:44:42 +02:00
openstack Add support for external source image url (#9992) 2020-09-25 14:59:00 +02:00
oracle tests: add some fields to config_test 2020-09-09 09:25:58 -04:00
osc ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
parallels Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder (#9874) 2020-09-14 12:24:01 +02:00
profitbricks Fix linting issues for SA6005 check (#9854) 2020-08-31 15:44:42 +02:00
proxmox builder/proxmox: add support for io threads (#9969) 2020-09-25 14:59:54 +02:00
qemu Pass QemuImgArgs to stepConvertDisk (#10001) 2020-09-28 11:43:20 +02:00
scaleway scaleway: add pre validate step (check image and snapshot names) (#9840) 2020-09-18 15:37:48 -04:00
tencentcloud/cvm tencentcloud cvm use CLOUD_PREMIUM disk by default (#9663) 2020-07-29 15:10:00 +02:00
triton ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
ucloud ci/tech-debt: Fix vmware acceptance tests (#9636) 2020-07-23 09:40:57 +02:00
vagrant Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder (#9874) 2020-09-14 12:24:01 +02:00
virtualbox Merge pull request #9932 from hashicorp/cd_files_on_virtualbox 2020-09-14 13:08:23 -07:00
vmware allow user to set tools source path 2020-09-24 09:51:01 -07:00
vsphere add step_remove_cdrom tests 2020-09-23 12:09:33 +02:00
yandex yandex-import: allow set custom API endpoint (#9850) 2020-08-31 15:29:20 +02:00
generated_data.go Share .Device and .MountPath between builders, provisioners and post-processors (#8621) 2020-01-20 16:29:38 +01:00
generated_data_test.go Add golangci-lint to project (#8686) 2020-02-14 11:42:29 -05:00