[pve-devel] [PATCH cluster] error out when getting remote ip address fails
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Nov 3 14:24:18 CET 2016
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 at proxmox.com>
---
this was left in by mistake by me
data/PVE/CLI/pvecm.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 65a063d..7c71707 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -867,7 +867,7 @@ __PACKAGE__->register_method ({
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"
--
2.1.4
More information about the pve-devel
mailing list