File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ func TestAccTencentCloudInstanceWithImageLogin(t *testing.T) {
252252 CheckDestroy : testAccCheckInstanceDestroy ,
253253 Steps : []resource.TestStep {
254254 {
255- Config : testAccTencentCloudInstanceWithImageLogin () ,
255+ Config : testAccTencentCloudInstanceWithImageLogin ,
256256 Check : resource .ComposeTestCheckFunc (
257257 testAccCheckTencentCloudDataSourceID (id ),
258258 testAccCheckTencentCloudInstanceExists (id ),
@@ -682,8 +682,7 @@ resource "tencentcloud_instance" "foo" {
682682 )
683683}
684684
685- func testAccTencentCloudInstanceWithImageLogin () string {
686- return defaultInstanceVariable + `
685+ const testAccTencentCloudInstanceWithImageLogin = defaultInstanceVariable + `
687686data "tencentcloud_images" "zoo" {
688687 image_type = ["PRIVATE_IMAGE"]
689688 os_name = "centos"
@@ -698,7 +697,6 @@ resource "tencentcloud_instance" "foo" {
698697 system_disk_type = "CLOUD_PREMIUM"
699698}
700699`
701- }
702700
703701func testAccTencentCloudInstanceWithName (instanceName string ) string {
704702 return fmt .Sprintf (
You can’t perform that action at this time.
0 commit comments