summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall3
1 files changed, 1 insertions, 2 deletions
diff --git a/install b/install
index 55c40e7..bb2eec0 100755
--- a/install
+++ b/install
@@ -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'