terraform/builtin/providers
Paul Stack 2c68808309 provider/aws: Defensively code around `db_security_group` ingress rules (#7893)
Fixes #7812

All of the options of `aws_db_security_group` ingress rules are
optional. Therefore, when one of them isn't set (and AWS doesn't
calculate the value), Terraform threw a panic

This commit just defensively codes around this fact. It checks to make
sure there is a value returned from the API before adding it to the map

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSDBSecurityGroup_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v
-run=TestAccAWSDBSecurityGroup_ -timeout 120m
=== RUN   TestAccAWSDBSecurityGroup_basic
--- PASS: TestAccAWSDBSecurityGroup_basic (38.66s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    38.682s
```
2016-08-15 21:45:23 +01:00
..
archive providers/archive: remove test files from provider and update gitignore 2016-08-15 11:56:22 -07:00
atlas
aws provider/aws: Defensively code around `db_security_group` ingress rules (#7893) 2016-08-15 21:45:23 +01:00
azure provider/azure: add custom_data argument for azure_instance resource (#8158) 2016-08-14 11:02:49 +01:00
azurerm provider/azurerm: Add support for servicebus namespaces (#8195) 2016-08-15 18:00:00 +01:00
chef
clc
cloudflare
cloudstack
cobbler
consul #7013 add tls config support to consul provider (#7015) 2016-08-12 12:22:41 +10:00
datadog
digitalocean provider/digitalocean: Enforce Lowercase on IPV6 Addresses (#7652) 2016-08-15 15:52:48 +01:00
dme
dnsimple
docker
dyn
fastly Added tests. 2016-08-09 14:42:19 +02:00
github
google providers/google: Add google_compute_image resource (#7960) 2016-08-12 12:35:33 +10:00
grafana
heroku
influxdb
librato
logentries
mailgun
mysql
null
openstack Fix typo in OpenStack LBaaSv2 pool resource 2016-08-14 20:56:53 +02:00
packet provider/packet: Restructure the Packet Volume test to no longer rely on environment variables 2016-08-15 08:38:43 +01:00
postgresql
powerdns
random
rundeck
scaleway
softlayer
statuscake
template
terraform
test
tls
triton
ultradns
vcd
vsphere provider/vSphere: Fix for IPv6 only environment creation. (#7643) 2016-08-15 11:43:54 -05:00