diff options
author | hagbard <vyosdev@derith.de> | 2019-10-09 09:24:40 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-10-09 09:24:40 -0700 |
commit | f8be18fbc549bc574746991bd0bb1de9b424745e (patch) | |
tree | 681026f10f4a02f707a1cec037935e20716fdb51 /src/services/vyos-hostsd | |
parent | c4dbaa158c9b5c6e3c4ff3fe2f9f17d095732547 (diff) | |
parent | 21fe962befb2ebd1625eb7a6c28cb3e9005fe37e (diff) | |
download | vyos-1x-f8be18fbc549bc574746991bd0bb1de9b424745e.tar.gz vyos-1x-f8be18fbc549bc574746991bd0bb1de9b424745e.zip |
Merge branch 'current' into equuleus
Diffstat (limited to 'src/services/vyos-hostsd')
-rwxr-xr-x | src/services/vyos-hostsd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd index e7ecd8573..5c2ea71c8 100755 --- a/src/services/vyos-hostsd +++ b/src/services/vyos-hostsd @@ -166,9 +166,9 @@ def delete_name_servers(data, tag): def set_host_name(state, data): if data['host_name']: state['host_name'] = data['host_name'] - if data['domain_name']: + if 'domain_name' in data: state['domain_name'] = data['domain_name'] - if data['search_domains']: + if 'search_domains' in data: state['search_domains'] = data['search_domains'] def get_name_servers(state, tag): |