Skip to content

Commit 994e451

Browse files
committed
add deprecated log
1 parent 78dd871 commit 994e451

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FEATURES:
44

55
* **New Resource**: `tencentcloud_kubernetes_node_pool` to support node management.
66

7+
DEPRECATED:
8+
9+
* Resource: `tencentcloud_kubernetes_as_scaling_group` replaced by `tencentcloud_kubernetes_node_pool`.
10+
711

812
## 1.51.1 (December 22, 2020)
913

tencentcloud/resource_tc_kubernetes_node_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func composeParameterToAsScalingGroupParaSerial(d *schema.ResourceData) (string,
374374

375375
request := as.NewCreateAutoScalingGroupRequest()
376376

377-
//this is an emtpy string
377+
//this is an empty string
378378
request.MaxSize = helper.IntUint64(d.Get("max_size").(int))
379379
request.MinSize = helper.IntUint64(d.Get("min_size").(int))
380380

tencentcloud/service_tencentcloud_tke.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,12 +1025,12 @@ func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, no
10251025
logId := getLogId(ctx)
10261026
//the error code of cluster not exist is InternalError
10271027
//check cluster exist first
1028-
_, has, err := me.DescribeCluster(ctx, clusterId)
1028+
_, clusterHas, err := me.DescribeCluster(ctx, clusterId)
10291029
if err != nil {
10301030
errRet = err
10311031
return
10321032
}
1033-
if !has {
1033+
if !clusterHas {
10341034
return
10351035
}
10361036

0 commit comments

Comments
 (0)