terraform/builtin/providers/scaleway
Raphael Randschau d9a2e0dbb3 provider/scaleway: fix scaleway_volume_attachment with count > 1 (#9493)
* provider/scaleway: fix scaleway_volume_attachment with count > 1

since scaleway requires servers to be powered off to attach volumes to, we need
to make sure that we don't power down a server twice, or power up a server while
it's supposed to be modified.

sadly terraform doesn't seem to sport serialization primitives for usecases like
this, but putting the code in question behind a `sync.Mutex` does the trick, too

fixes #9417

* provider/scaleway: use mutexkv to lock per-resource

following  @dcharbonnier  suggestion. thanks!

* provider/scaleway: cleanup waitForServerState signature

* provider/scaleway: store serverID in var

* provider/scaleway: correct imports

* provider/scaleway: increase timeouts
2016-10-27 16:51:34 +01:00
..
config.go provider/scaleway: expose Region as user facing configuration 2016-10-10 20:02:32 +02:00
data_source_scaleway_bootscript.go provider/scaleway: add bootscript data source 2016-10-15 19:32:01 +02:00
data_source_scaleway_bootscript_test.go provider/scaleway: Change bootscript datasource acceptance test 2016-10-24 13:11:41 +01:00
data_source_scaleway_image.go provider/scaleway: add image data source 2016-10-15 19:32:08 +02:00
data_source_scaleway_image_test.go provider/scaleway: add image data source 2016-10-15 19:32:08 +02:00
helpers.go provider/scaleway: fix scaleway_volume_attachment with count > 1 (#9493) 2016-10-27 16:51:34 +01:00
import_scaleway_ip_test.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
import_scaleway_security_group_test.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
import_scaleway_server_test.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
import_scaleway_volume_test.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
provider.go provider/scaleway: fix scaleway_volume_attachment with count > 1 (#9493) 2016-10-27 16:51:34 +01:00
provider_test.go Add scaleway provider (#7331) 2016-07-13 21:03:41 +01:00
resource_scaleway_ip.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
resource_scaleway_ip_test.go provider/scaleway: Expose IPv6 support, improve documentation (#7784) 2016-07-25 12:49:09 +01:00
resource_scaleway_security_group.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
resource_scaleway_security_group_rule.go provider/scaleway: fix security_group_rule identification 2016-09-05 16:29:18 +02:00
resource_scaleway_security_group_rule_test.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
resource_scaleway_security_group_test.go Add scaleway provider (#7331) 2016-07-13 21:03:41 +01:00
resource_scaleway_server.go provider/scaleway speedup server deletion (#9491) 2016-10-27 12:37:40 +01:00
resource_scaleway_server_test.go provider/scaleway: Expose IPv6 support, improve documentation (#7784) 2016-07-25 12:49:09 +01:00
resource_scaleway_volume.go provider/scaleway: add importer support 2016-10-15 23:49:14 +02:00
resource_scaleway_volume_attachment.go provider/scaleway: fix scaleway_volume_attachment with count > 1 (#9493) 2016-10-27 16:51:34 +01:00
resource_scaleway_volume_attachment_test.go Add scaleway provider (#7331) 2016-07-13 21:03:41 +01:00
resource_scaleway_volume_test.go Add scaleway provider (#7331) 2016-07-13 21:03:41 +01:00