mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-05 11:59:38 +00:00
More instances tests
This commit is contained in:
@@ -61,6 +61,4 @@ class NewVMForm(forms.Form):
|
||||
have_symbol = re.match('^[a-zA-Z0-9._-]+$', name)
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The name of the virtual machine must not contain any special characters'))
|
||||
elif len(name) > 64:
|
||||
raise forms.ValidationError(_('The name of the virtual machine must not exceed 20 characters'))
|
||||
return name
|
||||
|
||||
Reference in New Issue
Block a user