From c45692e04a0bddd1874716d0902b4767cc95c4f4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 17 Sep 2021 10:58:08 +0200 Subject: [PATCH] net: ip from host: avoid using an undefined variable in die Signed-off-by: Thomas Lamprecht --- src/PVE/Network.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm index 15838a0..81945fa 100644 --- a/src/PVE/Network.pm +++ b/src/PVE/Network.pm @@ -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; } -- 2.39.2