Skip to content

Commit

Permalink
Merge pull request avocado-framework#3879 from xiaodwan/fix_expected_…
Browse files Browse the repository at this point in the history
…non-negative_integer_issue

USB: fix Invalid value for attribute 'bus' in element 'address'
  • Loading branch information
chloerh authored Apr 9, 2024
2 parents f742d6f + 43fb8bc commit 01316c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/utils_test/libvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,8 +1541,8 @@ def create_hostdev_xml(
}
hostdev_xml.source = hostdev_xml.new_source(**attrs)
if dev_type == "usb":
addr_bus = pci_id.split(":")[2]
addr_device = pci_id.split(":")[3]
addr_bus = pci_id.split(":")[2].lstrip("0")
addr_device = pci_id.split(":")[3].lstrip("0")
hostdev_xml.source = hostdev_xml.new_source(
**(
dict(
Expand Down

0 comments on commit 01316c9

Please sign in to comment.