remove the noerr flag so that we error out when we get multiple IPs
from a CIDR or none at all, the user has to guarantee that his CIDR
matches just one IP on each local host.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
if ($param->{get_migration_ip}) {
my $network = $param->{migration_network};
- if (my $ip = PVE::Cluster::get_local_migration_ip($network, 1)) {
+ if (my $ip = PVE::Cluster::get_local_migration_ip($network)) {
print "ip: '$ip'\n";
} else {
- print "no ip\n"
+ print "no ip\n";
}
# do not keep tunnel open when asked for migration ip
return undef;