summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-12 17:32:28 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-12 17:32:28 +0100
commitb669c4ae2aab8d294b3a4719e07e65b3550fad54 (patch)
tree6aac4df193942a332f498987eac17d2ba36cc419 /src
parent8ee59fa3301c0cf6e440b30cc6713da8b9695979 (diff)
downloadvyos-1x-b669c4ae2aab8d294b3a4719e07e65b3550fad54.tar.gz
vyos-1x-b669c4ae2aab8d294b3a4719e07e65b3550fad54.zip
vyos-hostsd-client: T9615: fix setting the host name
The host name and domain name were passed to the client as a single dict, so --set-host-name always failed with a TypeError. Both are now passed as separate arguments.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils/vyos-hostsd-client2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/vyos-hostsd-client b/src/utils/vyos-hostsd-client
index 937e657ff..d3f5c0169 100755
--- a/src/utils/vyos-hostsd-client
+++ b/src/utils/vyos-hostsd-client
@@ -144,7 +144,7 @@ try:
elif args.set_host_name:
if not args.domain_name:
raise ValueError('--domain-name is required for this operation')
- client.set_host_name({'host_name': args.set_host_name, 'domain_name': args.domain_name})
+ client.set_host_name(args.set_host_name, args.domain_name)
elif args.apply:
pass