diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-11-12 17:32:28 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-12 17:32:28 +0100 |
| commit | b669c4ae2aab8d294b3a4719e07e65b3550fad54 (patch) | |
| tree | 6aac4df193942a332f498987eac17d2ba36cc419 /src | |
| parent | 8ee59fa3301c0cf6e440b30cc6713da8b9695979 (diff) | |
| download | vyos-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-x | src/utils/vyos-hostsd-client | 2 |
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 |
