]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
net: ip from host: avoid using an undefined variable in die
[pve-common.git] / 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;
     }