virtinst: fix two undefined variable warnings

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-08-05 13:53:19 +02:00
parent 745fa9fa5e
commit 76d6c5b597

View File

@ -55,7 +55,7 @@ class VirtualHostDevice(VirtualDevice):
if not count:
raise RuntimeError(_("Could not find USB device "
"(vendorId: %s, productId: %s)")
% (vendor, product))
% (self.vendor, self.product))
if count > 1:
self.bus = nodedev.bus