diff options
-rwxr-xr-x | src/conf_mode/host_name.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index 87bad0dc6..1e4667cac 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -70,9 +70,9 @@ def get_config(config=None): hosts['nameserver'].append(ns) else: tmp = '' - if_type = Section.section(ns) - if conf.exists(['interfaces', if_type, ns, 'address']): - tmp = conf.return_values(['interfaces', if_type, ns, 'address']) + config_path = Section.get_config_path(ns) + if conf.exists(['interfaces', config_path, 'address']): + tmp = conf.return_values(['interfaces', config_path, 'address']) hosts['nameservers_dhcp_interfaces'].update({ ns : tmp }) |