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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux