summaryrefslogtreecommitdiff
path: root/src/utils/vyos-hostsd-client
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/vyos-hostsd-client')
-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})