1
0
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:
Adolfo Gómez García 2020-07-08 19:27:09 +02:00
parent a31411fbf0
commit c286beac9f

View File

@ -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: