@@ -636,11 +636,11 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er
636636 defer logElapsed ("resource.tencentcloud_kubernetes_node_pool.read" )()
637637
638638 var (
639- logId = getLogId (contextNil )
640- ctx = context .WithValue (context .TODO (), logIdKey , logId )
641- service = TkeService {client : meta .(* TencentCloudClient ).apiV3Conn }
639+ logId = getLogId (contextNil )
640+ ctx = context .WithValue (context .TODO (), logIdKey , logId )
641+ service = TkeService {client : meta .(* TencentCloudClient ).apiV3Conn }
642642 asService = AsService {client : meta .(* TencentCloudClient ).apiV3Conn }
643- items = strings .Split (d .Id (), FILED_SP )
643+ items = strings .Split (d .Id (), FILED_SP )
644644 )
645645 if len (items ) != 2 {
646646 return fmt .Errorf ("resource_tc_kubernetes_node_pool id is broken" )
@@ -849,11 +849,11 @@ func resourceKubernetesNodePoolUpdate(d *schema.ResourceData, meta interface{})
849849 defer logElapsed ("resource.tencentcloud_kubernetes_node_pool.update" )()
850850
851851 var (
852- logId = getLogId (contextNil )
853- ctx = context .WithValue (context .TODO (), logIdKey , logId )
854- service = TkeService {client : meta .(* TencentCloudClient ).apiV3Conn }
852+ logId = getLogId (contextNil )
853+ ctx = context .WithValue (context .TODO (), logIdKey , logId )
854+ service = TkeService {client : meta .(* TencentCloudClient ).apiV3Conn }
855855 asService = AsService {client : meta .(* TencentCloudClient ).apiV3Conn }
856- items = strings .Split (d .Id (), FILED_SP )
856+ items = strings .Split (d .Id (), FILED_SP )
857857 )
858858 if len (items ) != 2 {
859859 return fmt .Errorf ("resource_tc_kubernetes_node_pool id is broken" )
@@ -904,9 +904,9 @@ func resourceKubernetesNodePoolUpdate(d *schema.ResourceData, meta interface{})
904904 }
905905
906906 var (
907- scalingGroupId = * nodePool .AutoscalingGroupId
907+ scalingGroupId = * nodePool .AutoscalingGroupId
908908 name = d .Get ("scaling_group_name" ).(string )
909- projectId = d .Get ("scaling_group_project_id" ).(int )
909+ projectId = d .Get ("scaling_group_project_id" ).(int )
910910 defaultCooldown = d .Get ("default_cooldown" ).(int )
911911 zones []* string
912912 terminationPolicy []* string
@@ -924,7 +924,6 @@ func resourceKubernetesNodePoolUpdate(d *schema.ResourceData, meta interface{})
924924 }
925925 }
926926
927-
928927 err = resource .Retry (writeRetryTimeout , func () * resource.RetryError {
929928 errRet := asService .ModifyScalingGroup (ctx , scalingGroupId , name , projectId , defaultCooldown , zones , terminationPolicy )
930929 if errRet != nil {
0 commit comments