[virt-tools-list] [PATCH virt-manager] virt-manager, create: honor untoggled "Set a fixed MAC address"
Giuseppe Scrivano
gscrivan at redhat.com
Mon Jul 21 12:52:40 UTC 2014
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1083461
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtManager/create.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/virtManager/create.py b/virtManager/create.py
index ba755b6..fe08cdc 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -1722,7 +1722,9 @@ class vmmCreate(vmmGObjectUI):
if not self.validate_storage_page():
return False
- macaddr = self.widget("config-macaddr").get_text().strip()
+ macaddr = None
+ if self.widget("config-macaddr").get_sensitive():
+ macaddr = self.widget("config-macaddr").get_text().strip()
nettype = self.netlist.get_network_selection()[0]
if nettype is None:
--
1.9.3
More information about the virt-tools-list
mailing list