@@ -714,7 +714,7 @@ func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId
714714}
715715
716716/*
717- if cluster is creating, return error:TencentCloudSDKError] Code=InternalError.ClusterState
717+ if cluster is creating, return error:TencentCloudSDKError] Code=InternalError.ClusterState
718718*/
719719func (me * TkeService ) DeleteClusterInstances (ctx context.Context , id string , instanceIds []string ) (errRet error ) {
720720 logId := getLogId (ctx )
@@ -823,7 +823,7 @@ func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId s
823823}
824824
825825/*
826- open internet access
826+ open internet access
827827*/
828828func (me * TkeService ) CreateClusterEndpoint (ctx context.Context , id string , subnetId , securityGroupId string , internet bool , domain string ) (errRet error ) {
829829 logId := getLogId (ctx )
@@ -1430,7 +1430,7 @@ func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, no
14301430 return
14311431}
14321432
1433- //node pool global config
1433+ // node pool global config
14341434func (me * TkeService ) ModifyClusterNodePoolGlobalConfig (ctx context.Context , request * tke.ModifyClusterAsGroupOptionAttributeRequest ) (errRet error ) {
14351435 logId := getLogId (ctx )
14361436 defer func () {
@@ -2176,9 +2176,7 @@ func (me *TkeService) describeBackupStorageLocations(ctx context.Context, names
21762176 logId , request .GetAction (), request .ToJsonString (), response .ToJsonString ())
21772177
21782178 if response .Response != nil && len (response .Response .BackupStorageLocationSet ) > 0 {
2179- for _ , bl := range response .Response .BackupStorageLocationSet {
2180- locations = append (locations , bl )
2181- }
2179+ locations = append (locations , response .Response .BackupStorageLocationSet ... )
21822180 }
21832181 return
21842182
@@ -2199,4 +2197,4 @@ func (me *TkeService) deleteBackupStorageLocation(ctx context.Context, name stri
21992197 ratelimit .Check (request .GetAction ())
22002198 _ , err := me .client .UseTkeClient ().DeleteBackupStorageLocation (request )
22012199 return err
2202- }
2200+ }
0 commit comments