summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-09-30 07:54:47 +0700
committerGitHub <noreply@github.com>2019-09-30 07:54:47 +0700
commit75020e248bcea9759eac5e9ef3769dddad704787 (patch)
treeb4f677edb390b06cd27673343734fc861abd01ac /src
parent6ac5271e93d06712f6e318d2f6b96280ae16f040 (diff)
parentd1848a9f9447408deac451edf6392b8351ef6f64 (diff)
downloadvyos-1x-75020e248bcea9759eac5e9ef3769dddad704787.tar.gz
vyos-1x-75020e248bcea9759eac5e9ef3769dddad704787.zip
Merge pull request #142 from DmitriyEshenko/hostsd-fix
[vyos-hostsd] T1701 Fix check for delete domain-name and domain-search
Diffstat (limited to 'src')
-rwxr-xr-xsrc/services/vyos-hostsd4
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):