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 provider/google: self-signed ssl certs for testing 2015-11-20 11:32:25 -05:00
compute_operation.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
config.go WIP: providers/google: Support IAM permissions for GCP projects 2016-09-07 13:35:33 -07:00
config_test.go provider/google: read credentials as contents instead of path 2015-11-16 15:14:32 -06:00
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 Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
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/google: Fix project metadata sshkeys from showing up 2016-01-05 11:37:52 -05:00
provider.go WIP: providers/google: Support IAM permissions for GCP projects 2016-09-07 13:35:33 -07:00
provider_test.go Correct error messages in google provider test library 2016-05-10 10:59:11 -07:00
resource_compute_address.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_address_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
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 provider/google: Some more collision avoidance test tweaks 2016-01-05 12:26:44 -06:00
resource_compute_global_address.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_global_address_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_global_forwarding_rule.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_global_forwarding_rule_test.go provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
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 provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_https_health_check.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_https_health_check_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
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 fmt 2015-06-23 22:31:24 -07:00
resource_compute_instance_migrate_test.go fmt 2015-06-23 22:31:24 -07:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_network_test.go Add subnetwork resource ACC tests, additional doc updates 2016-02-18 08:37:58 -08:00
resource_compute_project_metadata.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_project_metadata_test.go provider/google: Fix project metadata sshkeys from showing up 2016-01-05 11:37:52 -05:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_ssl_certificate_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_target_http_proxy_test.go provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
resource_compute_target_https_proxy.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_target_https_proxy_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
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 provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
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 [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
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 Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_dns_managed_zone_test.go description is now a required field for google_dns_managed_zone 2016-03-02 17:23:11 -03:00
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 Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_pubsub_subscription_test.go provider/google: Fix Pubsub acceptance tests 2016-03-02 15:36:32 -08:00
resource_pubsub_topic.go Accept "project" as an attribute to GCP resources 2016-04-10 13:01:24 -04:00
resource_pubsub_topic_test.go provider/google: Fix Pubsub acceptance tests 2016-03-02 15:36:32 -08:00
resource_sql_database.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
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 provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
resource_sql_user.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_sql_user_test.go provider/google: SQL user resource, documentation & tests 2016-01-13 16:33:08 -05:00
resource_storage_bucket.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_bucket_acl.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_storage_bucket_acl_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
resource_storage_bucket_object.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_storage_bucket_object_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
resource_storage_bucket_test.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_object_acl.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_storage_object_acl_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
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