summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitriyEshenko <snooppy@mail.ua>2019-09-29 22:16:58 +0000
committerDmitriyEshenko <snooppy@mail.ua>2019-09-29 22:16:58 +0000
commitd1848a9f9447408deac451edf6392b8351ef6f64 (patch)
treeb4f677edb390b06cd27673343734fc861abd01ac /src
parent6ac5271e93d06712f6e318d2f6b96280ae16f040 (diff)
downloadvyos-1x-d1848a9f9447408deac451edf6392b8351ef6f64.tar.gz
vyos-1x-d1848a9f9447408deac451edf6392b8351ef6f64.zip
[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):