packer-cn/builder/scaleway
Marco Molteni 4d7e42220b
scaleway: add pre validate step (check image and snapshot names) (#9840)
* Implement Stringer inteface for multistep.StepAction

* scaleway: add pre validate step (check image and snapshot names)

Before, it was possible to create multiple images with the same name,
leading to a confusing and wasteful situation (same for snapshots).

Now, we perform the same kind of checks done by the AWS EC2 builder,
and refuse to proceed if there is an existing image with the same name
(same for snapshots).

As usual, invoking `packer build -force` will bypass the checks.

Closes #9839.
2020-09-18 15:37:48 -04:00
..
artifact.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
artifact_test.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
builder.go scaleway: add pre validate step (check image and snapshot names) (#9840) 2020-09-18 15:37:48 -04:00
builder_test.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
config.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
config.hcl2spec.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_create_image.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_create_server.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_create_ssh_key.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_pre_validate.go scaleway: add pre validate step (check image and snapshot names) (#9840) 2020-09-18 15:37:48 -04:00
step_pre_validate_test.go scaleway: add pre validate step (check image and snapshot names) (#9840) 2020-09-18 15:37:48 -04:00
step_remove_volume.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_server_info.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_shutdown.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
step_snapshot.go feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00