[virt-tools-list] [virt-manager PATCH] network: Set bridge name to None instead of blank
Lin Ma
lma at suse.com
Thu Oct 19 08:56:42 UTC 2017
Trigger libvirt error if user leaves 'net-bridge-name' GtkEntry
blank when specifying shared device name.
Signed-off-by: Lin Ma <lma at suse.com>
---
virtManager/netlist.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtManager/netlist.py b/virtManager/netlist.py
index 772e988..4f1e991 100644
--- a/virtManager/netlist.py
+++ b/virtManager/netlist.py
@@ -314,7 +314,7 @@ class vmmNetworkList(vmmGObjectUI):
if net_check_bridge and bridge_entry:
net_type = virtinst.VirtualNetworkInterface.TYPE_BRIDGE
- net_src = bridge_entry.get_text()
+ net_src = bridge_entry.get_text() or None
mode = None
if self.widget("net-source-mode").is_visible():
--
2.9.2
More information about the virt-tools-list
mailing list