createnet: validate last page before creating the network

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@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2014-06-25 12:35:46 +02:00
parent 81bd6bbffb
commit f109b1ed6f
1 changed files with 3 additions and 0 deletions

View File

@ -754,6 +754,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: