Skip to content

Commit 0cbb9b6

Browse files
author
Robert Breker
committed
Also allow underscore, point and dash in container identifier
Signed-off-by: Robert Breker <[email protected]>
1 parent 398afd9 commit 0cbb9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xscontainer/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _post_api(session, vmuuid, request):
6464

6565

6666
def _verify_or_throw_container(container):
67-
if not re.match('^[a-z0-9]+$', container):
67+
if not re.match('^[a-z0-9_.-]+$', container):
6868
raise util.XSContainerException("Invalid container")
6969

7070

0 commit comments

Comments
 (0)