mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-04 05:45:50 +00:00
net: ip from host: avoid using an undefined variable in die
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1981940474
commit
c45692e04a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user