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

Cole Robinson crobinso at redhat.com
Thu Jun 26 12:45:39 UTC 2014


On 06/25/2014 07:05 AM, Giuseppe Scrivano wrote:
> 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:
> 

ACK

- Cole




More information about the virt-tools-list mailing list