diff options
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' |