Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #129 from tonicbupt/dev
Browse files Browse the repository at this point in the history
allow underscores in hostname due to `docker link`
  • Loading branch information
robbrockbank authored Aug 12, 2016
2 parents 8219a60 + c7af60e commit 3f2cbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calico_containers/pycalico/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def verify_hostname(hostname):

# Hostname labels may consist of numbers, letters and hyphens, but may not
# end or begin with a hyphen.
allowed = re.compile(r"(?!-)[a-z\d-]{1,63}(?<!-)$", re.IGNORECASE)
allowed = re.compile(r"(?!-)[_a-z\d-]{1,63}(?<!-)$", re.IGNORECASE)
for part in hostname.split('.'):
if not allowed.match(part):
err_mess = ("Hostname labels (parts delimited by periods) may "
Expand Down

0 comments on commit 3f2cbb0

Please sign in to comment.