Subject: network: Set bridge name to None instead of blank From: Lin Ma lma@suse.com Thu Oct 19 16:56:42 2017 +0800 Date: Thu Oct 19 18:09:19 2017 -0400: Git: 23aaf8527d63f4565661e0d582bb88af839d4dce Trigger libvirt error if user leaves 'net-bridge-name' GtkEntry blank when specifying shared device name. Signed-off-by: Lin Ma diff --git a/virtManager/netlist.py b/virtManager/netlist.py index 772e988d..4f1e991a 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():