createpool: Raise validation error if no name specified

This commit is contained in:
Cole Robinson 2014-09-06 15:03:58 -04:00
parent cc70aa82ab
commit 93dde44cf0
1 changed files with 4 additions and 0 deletions

View File

@ -473,6 +473,10 @@ class vmmCreatePool(vmmGObjectUI):
return pool
def _validate_page_name(self, usepool=None):
name = self.get_config_name()
if not name:
return self.err.val_err(_("A name must be specified."))
try:
if usepool:
self._pool = usepool