]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/PVE/CLI/pvecm.pm
error out when getting remote ip address fails
[pve-cluster.git] / data / PVE / CLI / pvecm.pm
index 65a063d77356085ca0d257dcc06f5ae538496696..f5d5422eac91da581d20bc5838cc68fb31898693 100755 (executable)
@@ -867,10 +867,10 @@ __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"
+               print "no ip\n";
            }
            # do not keep tunnel open when asked for migration ip
            return undef;