Commit Graph

14 Commits

Author SHA1 Message Date
James Bardin
bbb9588fda Don't assert nil values in convertStringArr
Some of the inputs to this function may not have been validated
2016-10-19 10:06:13 -04:00
James Nugent
115b48e64e provider/google: Ensure we don't assert on nil
This commit tests whether an interface is nil before type asserting it
to string - this should fix the panic reported in #8609.

We also clean up the schema definition to the newer style without
redundant type declarations.
2016-10-14 12:19:46 -05:00
Derek Richard
4189b6f30b Use healthcheck names instead of urls when reading target pool
- Resolves #8488

Signed-off-by: Dan Wendorf <dwendorf@pivotal.io>
2016-08-26 10:45:59 -07:00
Noah Webb
0eb18737cb provider/google: Made instances a computed property of 'google_compute_target_pool' 2016-08-18 13:29:00 -04:00
Noah Webb
1ff7b4375c provider/google: Support Import of 'google_compute_target_pool' 2016-08-11 10:24:03 -04:00
Igor Wiedler
a3188d0885 [provider/google] Use resource-specific project when waiting for creation
Creating most google cloud resources uses the compute_operation to
wait for the creation to complete. However, the computeOperationWait*
functions always uses the global `config.Project`, instead of the resource-
specific one.

This means that creating resource in a project other than the main one
fails with a 404 on the operation resource.

This patch uses the project from google_compute_instance instead of the
global one.
2016-06-10 11:55:21 +02:00
Seth Vargo
e2c5e9a1d5 Update documentation to include new "project" attribute
This commit also normalizes the format we display attributes.
2016-04-10 17:34:15 -04:00
Seth Vargo
9756d62378 Accept "project" as an attribute to GCP resources
This is the first step in removing the config dependency on "project".
This change is backwards-compatible because the value for this new
attribute defaults to the value from the provider.
2016-04-10 13:01:24 -04:00
Lars Wander
af69d1cd76 provider/google: Updated Read(..) behavior to handle deleted resources 2016-01-07 10:39:04 -05:00
Lars Wander
4c2303e114 Implements optional region for remaining GCE resources 2015-10-06 14:44:40 -04:00
Lars Wander
05503f4f9c Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
Mitchell Hashimoto
9b5d40c2e3 fmt 2015-02-20 10:22:26 -08:00
Dave Cunningham
038debbba9 Multiple gcp improvements and new resources 2015-01-30 10:32:35 -06:00