Skip to content

Commit 796b69e

Browse files
authored
feat(cvm): [128831323] modify instance name length (#3613)
* modify instance name length * modify instance name length * modify instance name length
1 parent 6b981e4 commit 796b69e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changelog/3613.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
datasource/tencentcloud_instances: modify the length of the instance name to 128
3+
```

tencentcloud/services/cvm/data_source_tc_instances.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func DataSourceTencentCloudInstances() *schema.Resource {
2727
"instance_name": {
2828
Type: schema.TypeString,
2929
Optional: true,
30-
ValidateFunc: tccommon.ValidateStringLengthInRange(1, 30),
30+
ValidateFunc: tccommon.ValidateStringLengthInRange(1, 128),
3131
Description: "Name of the instances to be queried.",
3232
},
3333
"availability_zone": {

tencentcloud/services/cvm/data_source_tc_instances_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func DataSourceTencentCloudInstancesSet() *schema.Resource {
2626
"instance_name": {
2727
Type: schema.TypeString,
2828
Optional: true,
29-
ValidateFunc: tccommon.ValidateStringLengthInRange(1, 30),
29+
ValidateFunc: tccommon.ValidateStringLengthInRange(1, 128),
3030
Description: "Name of the instances to be queried.",
3131
},
3232
"availability_zone": {

0 commit comments

Comments
 (0)