summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-29 16:53:57 +0100
committerGitHub <noreply@github.com>2021-11-29 16:53:57 +0100
commitc6b21196f4ff99444319b352e999fdd5705cce66 (patch)
treeaf28490189729be1106b8d4a9da1a5fa7b80e0ef
parent289e4194f0b2c6bffbddd9c0a09c3331a529d1f2 (diff)
parent39d6ca61c50f70171b2f7bcccbba2c70d102cb7f (diff)
downloadvyos-1x-c6b21196f4ff99444319b352e999fdd5705cce66.tar.gz
vyos-1x-c6b21196f4ff99444319b352e999fdd5705cce66.zip
Merge pull request #1083 from scj643/current
hosts: T3979: Change address to a list
-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})