@@ -74,10 +74,11 @@ package tencentcloud
7474import (
7575 "context"
7676 "fmt"
77- "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
78- "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
7977 "log"
8078 "strings"
79+
80+ "github.com/hashicorp/terraform-plugin-sdk/helper/schema"
81+ "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
8182)
8283
8384func resourceTencentCloudTkeAddonAttachment () * schema.Resource {
@@ -121,9 +122,9 @@ func resourceTencentCloudTkeAddonAttachment() *schema.Resource {
121122 Description : "Addon response body." ,
122123 },
123124 "status" : {
124- Type : schema .TypeMap ,
125- Computed : true ,
126- Description : "Addon current status." ,
125+ Type : schema .TypeMap ,
126+ Computed : true ,
127+ Description : "Addon current status." ,
127128 },
128129 },
129130 Create : resourceTencentCloudTkeAddonAttachmentCreate ,
@@ -209,13 +210,12 @@ func resourceTencentCloudTkeAddonAttachmentRead(d *schema.ResourceData, meta int
209210 addonName := split [1 ]
210211
211212 var (
212- err error
213- response string
213+ err error
214+ response string
214215 addonResponseData = & AddonResponseData {}
215- status = make (map [string ]* string )
216+ status = make (map [string ]* string )
216217 )
217218
218-
219219 _ , has , err = service .PollingAddonsPhase (ctx , clusterId , addonName , addonResponseData )
220220
221221 if err != nil || ! has {
@@ -300,7 +300,7 @@ func resourceTencentCloudTkeAddonAttachmentDelete(d *schema.ResourceData, meta i
300300 split = strings .Split (id , FILED_SP )
301301 clusterId = split [0 ]
302302 addonName = split [1 ]
303- has bool
303+ has bool
304304 )
305305
306306 if err := service .DeleteExtensionAddon (ctx , clusterId , addonName ); err != nil {
@@ -330,4 +330,4 @@ func getFilteredValues(d *schema.ResourceData, values []*string) []string {
330330 rawValues = append (rawValues , * value )
331331 }
332332 return rawValues
333- }
333+ }
0 commit comments