Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/540'
Browse files Browse the repository at this point in the history
* origin/pr/540:
  Allow dots in VM names
  • Loading branch information
marmarek committed Jul 20, 2024
2 parents dedbda7 + a306d83 commit 065c6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/vm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validate_name(holder, prop, value):

# this regexp does not contain '+'; if it had it, we should specifically
# disallow 'lost+found' #1440
if re.match(r"\A[a-zA-Z][a-zA-Z0-9_-]*\Z", value) is None:
if re.match(r"\A[a-zA-Z][a-zA-Z0-9_.-]*\Z", value) is None:
if holder is not None and prop is not None:
raise qubes.exc.QubesPropertyValueError(holder, prop, value,
'{} value contains illegal characters'.format(prop.__name__))
Expand Down

0 comments on commit 065c6e4

Please sign in to comment.