diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-09-30 07:54:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 07:54:47 +0700 |
commit | 75020e248bcea9759eac5e9ef3769dddad704787 (patch) | |
tree | b4f677edb390b06cd27673343734fc861abd01ac | |
parent | 6ac5271e93d06712f6e318d2f6b96280ae16f040 (diff) | |
parent | d1848a9f9447408deac451edf6392b8351ef6f64 (diff) | |
download | vyos-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
-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): |