summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/host_name.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index bdb99a7a4..c0341a77c 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -153,7 +153,7 @@ def verify(config):
if config['static_host_mapping']['hostnames']:
for hn in config['static_host_mapping']['hostnames']:
for hn_alias in config['static_host_mapping']['hostnames'][hn]['alias'].split(' '):
- if not hostname_regex.match(hn_alias):
+ if not hostname_regex.match(hn_alias) and len (hn_alias) !=0:
raise ConfigError('Invalid hostname alias ' + hn_alias)
return None