terraform/builtin/providers
Paul Stack 8b7f17c039 provider/aws: Change of aws_subnet ipv6 causing update failure (#14545)
Fixes: #14530

When we found an update of IPv6 cidr block, we first tried to
disassociate the old cidr block association. This caused errors if there
was none, it threw an error, as we passed an empty associationId:

```
* aws_subnet.public_subnet.0: InvalidSubnetCidrBlockAssociationId.Malformed: The subnet CIDR block with association ID  is malformed
    status code: 400, request id: f438f468-9ca4-4000-ba78-63a0f25d390a
* aws_subnet.public_subnet[1]: 1 error(s) occurred:
```

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSSubnet_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/05/16 18:28:45 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSSubnet_ -timeout 120m
=== RUN   TestAccAWSSubnet_importBasic
--- PASS: TestAccAWSSubnet_importBasic (55.40s)
=== RUN   TestAccAWSSubnet_basic
--- PASS: TestAccAWSSubnet_basic (53.62s)
=== RUN   TestAccAWSSubnet_ipv6
--- PASS: TestAccAWSSubnet_ipv6 (125.87s)
=== RUN   TestAccAWSSubnet_enableIpv6
--- PASS: TestAccAWSSubnet_enableIpv6 (88.88s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	323.787s
```
2017-05-16 23:06:28 +03:00
..
alicloud
archive
arukas
atlas
aws provider/aws: Change of aws_subnet ipv6 causing update failure (#14545) 2017-05-16 23:06:28 +03:00
azure
azurerm [MS] 14058 single placement group tf (#14510) 2017-05-16 11:46:07 +03:00
bitbucket
chef
circonus provider/circonus: Remove ValidateFunc from Computed-only field 2017-04-23 12:40:17 +02:00
clc
cloudflare
cloudstack
cobbler
consul provider/consul: Remove ValidateFunc from Computed-only fields 2017-04-23 12:40:58 +02:00
datadog Added new evaluation_delay parameter (#14433) 2017-05-12 16:12:21 +03:00
digitalocean Fix parsing of digitalocean dns records (#14215) 2017-05-16 12:10:34 +03:00
dme provider/dme: Save records in lowercase to avoid diffs (#14130) 2017-05-02 06:36:16 +01:00
dns unless id is set, txt record set is not available 2017-05-07 11:53:26 -04:00
dnsimple Make dnsimple_records importable (#9130) 2017-04-27 02:07:23 +12:00
docker Allow Windows Docker containers to map volumes (#13584) 2017-05-15 13:09:50 +03:00
dyn Add verbose Dyn provider logs (#14076) 2017-05-06 01:24:14 +02:00
external
fastly Makes cache setting condition optional in fastly service 2017-04-30 17:16:06 -03:00
github provider/github: Randomize repository collaborator acc tests 2017-05-13 11:11:41 +02:00
gitlab provider/gitlab: Adding default values to gitlab_project_hook resource 2017-05-04 19:59:32 +03:00
google provider/google: Fix the health check default values for http and https so they match the expected value in the documentation and specific health check instances. (#14441) 2017-05-15 12:59:44 -07:00
grafana
heroku providers/heroku: import heroku_pipeline resource (#14486) 2017-05-15 09:12:29 -05:00
http http provider and http request data source 2017-05-08 17:37:48 -07:00
icinga2
ignition ignition: internal cache moved to global, instead per provider instance 2017-04-23 20:32:04 +02:00
influxdb
kubernetes provider/kubernetes: Add support for limit_range (#14285) 2017-05-09 05:07:17 +02:00
librato
local
logentries provider/logentries: Refresh from state when resources not found (#13810) 2017-04-20 21:38:37 +03:00
mailgun
mysql
newrelic
nomad provider/nomad: Update Nomad provider tests 2017-05-04 15:52:55 -04:00
ns1 provider/ns1: record documentation improvements (#13786) 2017-04-21 12:38:05 +03:00
null
oneandone Provider Oneandone (#13633) 2017-04-21 17:19:10 +03:00
openstack provider/openstack: Handle Deleted Resources in Floating IP Association (#14533) 2017-05-16 11:36:50 +03:00
opsgenie
ovh provider/ovh: new provider (#12669) 2017-05-16 17:26:43 +03:00
packet
pagerduty provider/pagerduty: Randomize names in acceptance tests (#14364) 2017-05-11 09:14:30 -05:00
postgresql Merge pull request #11452 from pbthorste/master 2017-05-02 11:41:26 -04:00
powerdns
profitbricks Private images Fix (#14173) 2017-05-03 22:29:03 +03:00
rabbitmq provider/rabbitmq: Add test for binding properties_key (#13797) 2017-04-21 20:01:46 +03:00
rancher provider/rancher: Remove DiffSuppressFunc from Computed-only fields 2017-04-23 12:41:18 +02:00
random
rundeck adds `description` to `command` schema in `rundeck_job` resource 2017-05-11 14:30:21 +03:00
scaleway provider/scaleway: allow public_ip to be set (#14515) 2017-05-16 11:59:39 +03:00
softlayer
spotinst
statuscake
template provider/template: template_dir explicitly create dest dir 2017-04-25 10:48:26 -07:00
terraform
test providers/test: Add count resource <-> data source dep count scale tests 2017-05-12 15:45:06 -07:00
tls
triton Make triton machine deletes synchronous. 2017-05-11 11:42:15 +03:00
ultradns use validation helper 2017-04-25 20:06:33 +00:00
vault provider/vault: Prevent panic when no secret found (#14435) 2017-05-13 01:14:14 +03:00
vcd
vsphere