Skip to content

Commit

Permalink
Merge pull request #1077 from rwburgman/usb_address_path
Browse files Browse the repository at this point in the history
Fix invalid address to set for usb config
  • Loading branch information
Tinyblargon committed Sep 1, 2024
2 parents a994d14 + 6243dc3 commit f93526b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,7 @@ func resourceVmQemuRead(ctx context.Context, d *schema.ResourceData, meta interf

// read in the qemu hostpci
qemuUsbsDevices, _ := FlattenDevicesList(config.QemuUsbs)
qemuUsbsDevices, _ = DropElementsFromMap([]string{"id"}, qemuUsbsDevices)
logger.Debug().Int("vmid", vmID).Msgf("Usb Block Processed '%v'", config.QemuUsbs)
if err = d.Set("usb", qemuUsbsDevices); err != nil {
return diag.FromErr(err)
Expand Down

0 comments on commit f93526b

Please sign in to comment.