mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-06 13:17:54 +03:00
Removed _ from hostnames (no valid)
This commit is contained in:
parent
a31411fbf0
commit
c286beac9f
@ -156,7 +156,7 @@ def checkValidBasename(baseName: str, length: int = -1) -> None:
|
|||||||
Returns:
|
Returns:
|
||||||
None -- [description]
|
None -- [description]
|
||||||
"""
|
"""
|
||||||
if re.match(r'^[a-zA-Z0-9_-]+$', baseName) is None:
|
if re.match(r'^[a-zA-Z0-9-]+$', baseName) is None:
|
||||||
raise services.Service.ValidationException(ugettext('The basename is not a valid for a hostname'))
|
raise services.Service.ValidationException(ugettext('The basename is not a valid for a hostname'))
|
||||||
|
|
||||||
if length == 0:
|
if length == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user