Skip to content

Commit

Permalink
notebooks: use "-" as escape character
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar committed May 31, 2018
1 parent 2478c3a commit 69f654c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/notebooks/notebooks_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
def _server_name(namespace, project, commit_sha):
"""Form a DNS-safe server name."""
escape = lambda x: escapism.escape(
x, safe=set(string.ascii_lowercase + string.digits)
x, safe=set(string.ascii_lowercase + string.digits, escape_char='-')
)
return '{namespace}-{project}-{commit_sha}'.format(
namespace=escape(namespace)[:10],
Expand Down

0 comments on commit 69f654c

Please sign in to comment.