[virt-tools-list] [PATCH virt-manager 4/5] createnet: validate last page before creating the network

Giuseppe Scrivano gscrivan at redhat.com
Wed Jun 25 11:05:49 UTC 2014


On the last page in the createnet wizard the Next button is changed to
Finish.  Ensure the user input is validated also on this page.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virtManager/createnet.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/virtManager/createnet.py b/virtManager/createnet.py
index d4bc063..bc01675 100644
--- a/virtManager/createnet.py
+++ b/virtManager/createnet.py
@@ -857,6 +857,9 @@ class vmmCreateNetwork(vmmGObjectUI):
         net.install()
 
     def finish(self, ignore):
+        if not self.validate(PAGE_MAX):
+            return
+
         try:
             net = self._build_xmlobj()
         except Exception, e:
-- 
1.9.3




More information about the virt-tools-list mailing list