From 5ac03c871aa044eb483364de0e86e08503012f4f Mon Sep 17 00:00:00 2001 From: hagbard Date: Fri, 22 Feb 2019 10:11:14 -0800 Subject: bugfix: static-mapping-host alias not mandatory, verification adjusted --- src/conf_mode/host_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3