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

Commit c7af60e

Browse files
committed
allow underscores in hostname due to docker link
1 parent 65ce4cc commit c7af60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

calico_containers/pycalico/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def verify_hostname(hostname):
409409

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

0 commit comments

Comments
 (0)