Skip to content

Commit f1d6380

Browse files
authored
Update resource_tc_kubernetes_cluster.go (#766)
fix: ignore empty img_id fields
1 parent 026eb11 commit f1d6380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ func tkeGetCvmRunInstancesPara(dMap map[string]interface{}, meta interface{},
15611561
}
15621562
}
15631563

1564-
if v, ok := dMap["img_id"]; ok {
1564+
if v, ok := dMap["img_id"]; ok && v.(string) != "" {
15651565
request.ImageId = helper.String(v.(string))
15661566
}
15671567

0 commit comments

Comments
 (0)