Skip to content

Commit

Permalink
Allow dots in VM names
Browse files Browse the repository at this point in the history
  • Loading branch information
DemiMarie committed Jun 2, 2023
1 parent 8e0de90 commit a031c67
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 @@ -53,7 +53,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 a031c67

Please sign in to comment.