Skip to content

Commit 5d1c8c6

Browse files
authored
chore(vm): fix regression after storage devices refactoring (#1399)
Signed-off-by: Pavel Boldyrev <[email protected]>
1 parent 4a8bf8d commit 5d1c8c6

File tree

1 file changed

+0
-17
lines changed
  • proxmoxtf/resource/vm

1 file changed

+0
-17
lines changed

proxmoxtf/resource/vm/vm.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,23 +1849,6 @@ func vmCreateClone(ctx context.Context, d *schema.ResourceData, m interface{}) d
18491849
updateBody.SCSIHardware = &scsiHardware
18501850
}
18511851

1852-
if len(cdrom) > 0 || len(initialization) > 0 {
1853-
ideDevices = vms.CustomStorageDevices{
1854-
"ide0": &vms.CustomStorageDevice{
1855-
Enabled: false,
1856-
},
1857-
"ide1": &vms.CustomStorageDevice{
1858-
Enabled: false,
1859-
},
1860-
"ide2": &vms.CustomStorageDevice{
1861-
Enabled: false,
1862-
},
1863-
"ide3": &vms.CustomStorageDevice{
1864-
Enabled: false,
1865-
},
1866-
}
1867-
}
1868-
18691852
if len(cdrom) > 0 && cdrom[0] != nil {
18701853
cdromBlock := cdrom[0].(map[string]interface{})
18711854

0 commit comments

Comments
 (0)