Skip to content

Commit

Permalink
chore(vm): fix regression after storage devices refactoring (bpg#1399)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Boldyrev <[email protected]>
  • Loading branch information
bpg authored Jun 17, 2024
1 parent 4a8bf8d commit 5d1c8c6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions proxmoxtf/resource/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1849,23 +1849,6 @@ func vmCreateClone(ctx context.Context, d *schema.ResourceData, m interface{}) d
updateBody.SCSIHardware = &scsiHardware
}

if len(cdrom) > 0 || len(initialization) > 0 {
ideDevices = vms.CustomStorageDevices{
"ide0": &vms.CustomStorageDevice{
Enabled: false,
},
"ide1": &vms.CustomStorageDevice{
Enabled: false,
},
"ide2": &vms.CustomStorageDevice{
Enabled: false,
},
"ide3": &vms.CustomStorageDevice{
Enabled: false,
},
}
}

if len(cdrom) > 0 && cdrom[0] != nil {
cdromBlock := cdrom[0].(map[string]interface{})

Expand Down

0 comments on commit 5d1c8c6

Please sign in to comment.