]> git.proxmox.com Git - pve-common.git/commitdiff
net: ip from host: avoid using an undefined variable in die
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Sep 2021 08:58:08 +0000 (10:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Sep 2021 09:14:02 +0000 (11:14 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network.pm

index 15838a02386665cdf3d19f0528eaab90f60c018c..81945fa0dd3544d386ead9eedf79b4e5580a6c80 100644 (file)
@@ -642,7 +642,7 @@ sub get_ip_from_hostname {
        }
     }
     if (!defined($ip) ) {
-       die "hostname lookup '$hostname' failed - got local IP address '$ip'\n" if !$noerr;
+       die "address lookup for '$hostname' did not find any IP address\n" if !$noerr;
        return undef;
     }