addhardware: Fix invoking netlist validate()

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-07-05 18:55:51 -04:00
parent 183fa0c8df
commit 5733d8941c

View File

@ -1409,7 +1409,7 @@ class vmmAddHardware(vmmGObjectUI):
if self.addstorage.validate_device(dev) is False:
return False
if dev.DEVICE_TYPE == "network":
if dev.DEVICE_TYPE == "interface":
self._netlist.validate_device(dev)
if dev.DEVICE_TYPE == "hostdev":