terraform/builtin/providers/google
Paddy 8ba6ed708a provider/google: throw an error for invalid disks
When configuring an instance's attached disk, if the attached disk has
both the disk and type attributes set, it would previously cause
terraform to crash with a nil pointer exception. The root cause was that
we only instantiate the InitializeParams property of the disk if its
disk attribute isn't set, and we try to write to the InitializeParams
property when the type attribute is set. So setting both caused the
InitializeParams property to not be initialized, then written to.

Now we throw an error explaining that the configuration can't have both
the disk and the type set.

Fixes #6495.
2016-11-07 16:11:00 -08:00
..
test-fixtures
compute_operation.go
config.go WIP: providers/google: Support IAM permissions for GCP projects 2016-09-07 13:35:33 -07:00
config_test.go
data_source_google_iam_policy.go providers/google: Add documentation for google_iam_policy resource 2016-09-07 13:35:33 -07:00
disk_type.go
dns_change.go provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
image.go Search configured project image families (#9243) 2016-11-01 21:00:12 +00:00
import_compute_autoscaler_test.go provider/google: Support Import of 'google_compute_autoscaler' 2016-08-10 16:19:31 -04:00
import_compute_firewall_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
import_compute_forwarding_rule_test.go provider/google: Support Import of 'google_compute_forwarding_rule' 2016-08-10 16:45:56 -04:00
import_compute_http_health_check_test.go provider/google: Support Import of 'google_resource_http_health_check' 2016-08-10 16:30:41 -04:00
import_compute_instance_group_manager_test.go provider/google: Support Import of'google_compute_instance_group_manager' 2016-08-18 15:13:52 -04:00
import_compute_instance_template_test.go provider/google: Support Import of 'google_compute_instance_template' 2016-08-15 10:03:31 -04:00
import_compute_target_pool_test.go provider/google: Support Import of 'google_compute_target_pool' 2016-08-11 10:24:03 -04:00
metadata.go
provider.go WIP: providers/google: Support IAM permissions for GCP projects 2016-09-07 13:35:33 -07:00
provider_test.go
resource_compute_address.go
resource_compute_address_test.go
resource_compute_autoscaler.go provider/google: Support Import of 'google_compute_autoscaler' 2016-08-10 16:19:31 -04:00
resource_compute_autoscaler_test.go Fix acceptance test image reversion (#8349) 2016-08-25 14:39:03 +01:00
resource_compute_backend_service.go providers/google: Fix read for the backend service resource (#7476) 2016-08-08 12:28:43 +12:00
resource_compute_backend_service_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_disk.go
resource_compute_disk_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_firewall.go provider/google: Remove redundant type declaration 2016-08-23 10:40:33 +02:00
resource_compute_firewall_migrate.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_firewall_migrate_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_firewall_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_forwarding_rule.go provider/google: Support Import of 'google_compute_forwarding_rule' 2016-08-10 16:45:56 -04:00
resource_compute_forwarding_rule_test.go
resource_compute_global_address.go
resource_compute_global_address_test.go
resource_compute_global_forwarding_rule.go
resource_compute_global_forwarding_rule_test.go
resource_compute_http_health_check.go provider/google: Support Import of 'google_resource_http_health_check' 2016-08-10 16:30:41 -04:00
resource_compute_http_health_check_test.go
resource_compute_https_health_check.go
resource_compute_https_health_check_test.go
resource_compute_image.go Add support for using source_disk to google_compute_image (#9614) 2016-11-01 10:32:47 +00:00
resource_compute_image_test.go Add support for using source_disk to google_compute_image (#9614) 2016-11-01 10:32:47 +00:00
resource_compute_instance.go provider/google: throw an error for invalid disks 2016-11-07 16:11:00 -08:00
resource_compute_instance_group.go
resource_compute_instance_group_manager.go provider/google: Support Import of'google_compute_instance_group_manager' 2016-08-18 15:13:52 -04:00
resource_compute_instance_group_manager_test.go Fix acceptance test image reversion (#8349) 2016-08-25 14:39:03 +01:00
resource_compute_instance_group_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_instance_migrate.go
resource_compute_instance_migrate_test.go
resource_compute_instance_template.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_instance_template_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_instance_test.go provider/google: throw an error for invalid disks 2016-11-07 16:11:00 -08:00
resource_compute_network.go
resource_compute_network_test.go
resource_compute_project_metadata.go
resource_compute_project_metadata_test.go
resource_compute_route.go Add support for default-internet-gateway alias for google_compute_route (#9676) 2016-11-01 13:45:36 +00:00
resource_compute_route_test.go Add support for default-internet-gateway alias for google_compute_route (#9676) 2016-11-01 13:45:36 +00:00
resource_compute_ssl_certificate.go
resource_compute_ssl_certificate_test.go
resource_compute_subnetwork.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_subnetwork_test.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_target_http_proxy.go
resource_compute_target_http_proxy_test.go
resource_compute_target_https_proxy.go
resource_compute_target_https_proxy_test.go
resource_compute_target_pool.go Don't assert nil values in convertStringArr 2016-10-19 10:06:13 -04:00
resource_compute_target_pool_test.go Use healthcheck names instead of urls when reading target pool 2016-08-26 10:45:59 -07:00
resource_compute_url_map.go providers/google: Move URLMap hosts to TypeSet from TypeList (#7472) 2016-08-08 12:47:05 +12:00
resource_compute_url_map_test.go
resource_compute_vpn_gateway.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_vpn_gateway_test.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_vpn_tunnel.go
resource_compute_vpn_tunnel_test.go providers/google: Fix VPN Tunnel acceptance test 2016-09-05 12:34:40 -07:00
resource_container_cluster.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_container_cluster_test.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_dns_managed_zone.go
resource_dns_managed_zone_test.go
resource_dns_record_set.go provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
resource_dns_record_set_test.go provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
resource_google_project.go providers/google: Add documentation for google_iam_policy resource 2016-09-07 13:35:33 -07:00
resource_google_project_test.go providers/google: Add documentation for google_iam_policy resource 2016-09-07 13:35:33 -07:00
resource_pubsub_subscription.go
resource_pubsub_subscription_test.go
resource_pubsub_topic.go
resource_pubsub_topic_test.go
resource_sql_database.go
resource_sql_database_instance.go provider/google Change default MySQL instance version to 5.6 (#9674) 2016-10-28 00:11:08 +01:00
resource_sql_database_instance_test.go provider/google: add test case for GH-4222 2016-08-18 15:08:50 -04:00
resource_sql_database_test.go
resource_sql_user.go
resource_sql_user_test.go
resource_storage_bucket.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_bucket_acl.go
resource_storage_bucket_acl_test.go
resource_storage_bucket_object.go
resource_storage_bucket_object_test.go
resource_storage_bucket_test.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_object_acl.go
resource_storage_object_acl_test.go
service_scope.go provider/google: add scope aliases 2016-10-19 23:14:55 +03:00
sqladmin_operation.go provider/google Support MySQL 5.7 instances (#9673) 2016-10-28 14:41:03 +02:00