mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
create: Fix building guest when no network options are present
This commit is contained in:
parent
f10063d6bd
commit
6da0a95b57
@ -1492,6 +1492,7 @@ class vmmCreate(vmmGObjectUI):
|
|||||||
|
|
||||||
if self.nic and self.nic in self.guest.get_devices("interface"):
|
if self.nic and self.nic in self.guest.get_devices("interface"):
|
||||||
self.guest.remove_device(self.nic)
|
self.guest.remove_device(self.nic)
|
||||||
|
if nic:
|
||||||
self.nic = nic
|
self.nic = nic
|
||||||
self.guest.add_device(self.nic)
|
self.guest.add_device(self.nic)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user