mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
createpool: Raise validation error if no name specified
This commit is contained in:
parent
cc70aa82ab
commit
93dde44cf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user