diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-04-18 10:29:03 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-04-18 10:29:03 +0000 |
commit | 7668753f391ccc695631277846bcbca7de1bf5d2 (patch) | |
tree | 884bf678a03fa7fa9e0204d7b6af4276586647da /install | |
parent | 37558950a89736685f3b0b1c05841603db86495d (diff) | |
download | live-7668753f391ccc695631277846bcbca7de1bf5d2.tar.gz |
Fix checking hostname
Diffstat (limited to 'install')
-rwxr-xr-x | install | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -690,8 +690,7 @@ swap - /tmp tmpfs - y def isValidNodename(hostname): if len(hostname) > 63: return False - allowed = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE) - return all(allowed.match(x) for x in hostname) + return re.match(r'^(?!-)[a-z0-9\-]+(?<!-)$', hostname) != None def configure_nodename(): nodename = 'frontier' |