]> git.proxmox.com Git - pve-installer.git/commit
run env: do not store emtpy hostname
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 16 Nov 2023 19:59:47 +0000 (20:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 05:25:43 +0000 (06:25 +0100)
commita8054233054e370782bd78d6e15e024674b692f0
treef2502f2159a8f41db923aa6157bf112b08f225bc
parenta8379706131d9acfe421708b732eb907106843a9
run env: do not store emtpy hostname

without this patch the hostname ends up as the empty string in
run-env-info.json, which results in a parse-error in the TUI code
(an empty string is not None, but still too short as hostname)

Minimally tested on a VM.

Fixes: bda1cdf ("run env: retrieve and store hostname from DHCP lease
 if available")
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Proxmox/Install/RunEnv.pm
Proxmox/Sys/Net.pm