Skip to content

Commit 8a52411

Browse files
committed
Fix EVC mode property type
And regenerate documentation
1 parent ccde947 commit 8a52411

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

docs/data-sources/inventory_vms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Read-Only:
3232
- `cpu_qty` (Number)
3333
- `datacenter` (String)
3434
- `description` (String)
35-
- `evc_mode` (Number)
35+
- `evc_mode` (String)
3636
- `id` (String)
3737
- `memory_mb` (Number)
3838
- `name` (String)

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ resource "dcloud_vm_start_order" "vm_start_order" {
220220
delay_seconds = 20
221221
vm_uid = dcloud_vm.vm2.id
222222
}
223+
224+
start_positions {
225+
position = 3
226+
delay_seconds = 30
227+
vm_uid = dcloud_vm.vm3.id
228+
}
223229
}
224230
225231
resource "dcloud_vm_stop_order" "vm_stop_order" {
@@ -235,6 +241,11 @@ resource "dcloud_vm_stop_order" "vm_stop_order" {
235241
position = 2
236242
vm_uid = dcloud_vm.vm1.id
237243
}
244+
245+
stop_positions {
246+
position = 3
247+
vm_uid = dcloud_vm.vm3.id
248+
}
238249
}
239250
240251
resource "dcloud_hw_start_order" "hw_start_order" {

examples/provider/provider.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ resource "dcloud_vm_start_order" "vm_start_order" {
206206
vm_uid = dcloud_vm.vm2.id
207207
}
208208

209-
start_positions {
210-
position = 3
211-
delay_seconds = 30
212-
vm_uid = dcloud_vm.vm3.id
213-
}
209+
start_positions {
210+
position = 3
211+
delay_seconds = 30
212+
vm_uid = dcloud_vm.vm3.id
213+
}
214214
}
215215

216216
resource "dcloud_vm_stop_order" "vm_stop_order" {

internal/dcloud/data_source_inventory_vms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func dataSourceInventoryVms() *schema.Resource {
6666
Computed: true,
6767
},
6868
"evc_mode": {
69-
Type: schema.TypeInt,
69+
Type: schema.TypeString,
7070
Computed: true,
7171
},
7272
"remote_access_rdp_auto_login": {

0 commit comments

Comments
 (0)