Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit fc55ae5

Browse files
Guannan Rencrobinso
authored andcommitted
add address element in hostdev xml when the values are present
(crobins: added Guannan to AUTHORS)
1 parent fee1f7c commit fc55ae5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Patches also received from
6262
Wanlong Gao <gaowanlong-at-cn-dot-fujitsu-dot-com>
6363
Eiichi Tsukata <devel-at-etsukata-dot-com>
6464
Gaudenz Steinlin <gaudenz-at-debian-dot-org>
65+
Guannan Ren <gren-at-redhat-dot-com>
6566

6667
...send patches and get your name here...
6768

virtinst/VirtualHostDevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _get_source_xml(self):
222222
if self.vendor and self.product:
223223
xml += " <vendor id='%s'/>\n" % self.vendor
224224
xml += " <product id='%s'/>\n" % self.product
225-
elif self.bus and self.device:
225+
if self.bus and self.device:
226226
xml += " <address bus='%s' device='%s'/>\n" % (self.bus,
227227
self.device)
228228
else:

0 commit comments

Comments
 (0)