Skip to content

Commit 8a14a18

Browse files
author
ivan
committed
修改命令行参数的key, os -> img_id
1 parent 8afa773 commit 8a14a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
549549
Elem: &schema.Schema{Type: schema.TypeString},
550550
Description: "Disaster recover groups to which a CVM instance belongs. Only support maximum 1.",
551551
},
552-
"os": {
552+
"img_id": {
553553
Type: schema.TypeString,
554554
Optional: true,
555555
ValidateFunc: validateImageID,
@@ -1268,7 +1268,7 @@ func tkeGetCvmRunInstancesPara(dMap map[string]interface{}, meta interface{},
12681268
}
12691269
}
12701270

1271-
if v, ok := dMap["os"]; ok {
1271+
if v, ok := dMap["img_id"]; ok {
12721272
request.ImageId = helper.String(v.(string))
12731273
}
12741274

0 commit comments

Comments
 (0)