summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Surett <surettcharles@gmail.com>2021-11-24 18:07:56 -0500
committerGitHub <noreply@github.com>2021-11-24 18:07:56 -0500
commit39d6ca61c50f70171b2f7bcccbba2c70d102cb7f (patch)
tree1520295bcbab6e0b55cf0152b46720f8ee141a01 /src
parent0362519a16bac1455beed2aa9057ead458131485 (diff)
downloadvyos-1x-39d6ca61c50f70171b2f7bcccbba2c70d102cb7f.tar.gz
vyos-1x-39d6ca61c50f70171b2f7bcccbba2c70d102cb7f.zip
hosts: T3979: Change address to a list
This fixes `hostfile-update` in the dhcp-server
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils/vyos-hostsd-client3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/vyos-hostsd-client b/src/utils/vyos-hostsd-client
index d4d38315a..a0515951a 100755
--- a/src/utils/vyos-hostsd-client
+++ b/src/utils/vyos-hostsd-client
@@ -129,7 +129,8 @@ try:
params = h.split(",")
if len(params) < 2:
raise ValueError("Malformed host entry")
- entry['address'] = params[1]
+ # Address needs to be a list because of changes made in T2683
+ entry['address'] = [params[1]]
entry['aliases'] = params[2:]
data[params[0]] = entry
client.add_hosts({args.tag: data})