terraform/builtin/providers/google
Paul Hinze 4f400a1944 provider/google: one more fix to GCE metadata
In #3501 @lwander got us almost all the way there, but we still had
tests failing. This seemed to be because GCE sets
`metadata.startup-script` to a blank string on instance creation, and if
a user specifies any `metadata` in their config this is seen as the
desired full contents of metadata, so we get a diff trying to remove
`startup-script`.

Here, to address this, we just proactively remove the "startup-script"
key from `Read`, and then we enforce that "metadata_startup_script"
is the only way to configure startup scripts on instances.
2015-10-14 21:34:33 -05:00
..
test-fixtures
compute_operation.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
config.go google: Code formatted via gofmt 2015-08-14 12:06:06 +01:00
config_test.go providers/google: Change account_file to JSON 2015-07-29 15:59:32 -04: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 fmt 2015-06-23 22:31:24 -07:00
image.go fmt 2015-02-20 10:22:26 -08:00
metadata.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
provider.go Provider GCE, fixed metadata state update bug 2015-10-14 12:47:54 -05:00
provider_test.go
resource_compute_address.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_address_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_autoscaler.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_autoscaler_test.go google: Code formatted via gofmt 2015-08-14 12:06:06 +01:00
resource_compute_backend_service.go Implements optional region for remaining GCE resources 2015-10-06 14:44:40 -04:00
resource_compute_backend_service_test.go Rename backend_service_test to compute_backend_service_test 2015-09-08 11:56:20 +01:00
resource_compute_disk.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_disk_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_firewall.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_firewall_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_forwarding_rule.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_forwarding_rule_test.go fmt 2015-02-20 10:22:26 -08:00
resource_compute_http_health_check.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_http_health_check_test.go Strip 'sdk' suffix from methods; it's a remnant 2015-05-12 14:58:10 -05:00
resource_compute_instance.go provider/google: one more fix to GCE metadata 2015-10-14 21:34:33 -05:00
resource_compute_instance_group_manager.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_instance_group_manager_test.go google: Code formatted via gofmt 2015-08-14 12:06:06 +01: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 Merge pull request #3242 from lwander/b-gce-network-interface-name 2015-09-25 16:40:16 -04:00
resource_compute_instance_template_test.go provider/google: Misc. cleanups for tests to pass 2015-08-31 09:06:25 -05:00
resource_compute_instance_test.go Provider GCE, fixed metadata state update bug 2015-10-14 12:47:54 -05:00
resource_compute_network.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_network_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_project_metadata.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_compute_project_metadata_test.go provider/google: Misc. cleanups for tests to pass 2015-08-31 09:06:25 -05:00
resource_compute_route.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_route_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_target_pool.go Implements optional region for remaining GCE resources 2015-10-06 14:44:40 -04:00
resource_compute_target_pool_test.go
resource_compute_vpn_gateway.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_compute_vpn_gateway_test.go Documentation and tests written for GCE VPN config 2015-09-15 16:13:48 -04:00
resource_compute_vpn_tunnel.go Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
resource_compute_vpn_tunnel_test.go Documentation and tests written for GCE VPN config 2015-09-15 16:13:48 -04:00
resource_container_cluster.go Convert int to int64 when building the cluster.NodeConfig struct 2015-08-11 08:27:32 -04:00
resource_container_cluster_test.go google: Add regression test for #2978 2015-08-20 21:40:57 +01:00
resource_dns_managed_zone.go fmt 2015-06-23 22:31:24 -07:00
resource_dns_managed_zone_test.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_dns_record_set.go fmt 2015-06-23 22:31:24 -07:00
resource_dns_record_set_test.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_storage_bucket.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_bucket_acl.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_bucket_acl_test.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_bucket_object.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_bucket_object_test.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_bucket_test.go acc tests: ensure each resource has a _basic test 2015-06-07 18:18:14 -05:00
resource_storage_object_acl.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
resource_storage_object_acl_test.go gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
service_scope.go Add a UserAgent with version temporarily set to 0.0.0 2015-04-15 18:17:21 -04:00