packer-cn/builder/tencentcloud/cvm
ZhiQiang Fan 1c7b23357d fix: correctly remove tencentcloud temporary keypair
Tencent Cloud key pair cannot be removed if it is in a image, so
when user doesn't specify any log in method, such as ssh_password,
temporary key pair will be created and used, which eventually will
always fail.

This patch detach temporary key pair before creating image, so in
cleanup step, it can be deleted correctly.

Note that if user specifies a private key pair, we do not detach it,
because user might want to use it when creating new instances from this
image.
2019-06-23 23:23:48 +08:00
..
access_config.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
access_config_test.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
artifact.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
builder.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
common.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
image_config.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
image_config_test.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
run_config.go Add tencent cloud builder (#7135 & #6839) 2018-12-20 17:09:44 +01:00
run_config_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_check_source_image.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_config_key_pair.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
step_config_security_group.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
step_config_subnet.go move retry code into the common/retry pkg and make retry context aware 2019-04-09 17:46:38 +02:00
step_config_vpc.go move retry code into the common/retry pkg and make retry context aware 2019-04-09 17:46:38 +02:00
step_copy_image.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_create_image.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
step_detach_temp_key_pair.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
step_pre_validate.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_run_instance.go fix: correctly remove tencentcloud temporary keypair 2019-06-23 23:23:48 +08:00
step_share_image.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00