]> git.proxmox.com Git - pve-cluster.git/commitdiff
pvecm: style cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 14:32:09 +0000 (16:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 14:35:24 +0000 (16:35 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/pvecm.pm

index 564dc99851df2fe84b5f39b8eb87ffe1901c8b35..2678165316c44b3857eb6a0232744a1b4ac9eaa9 100755 (executable)
@@ -393,8 +393,8 @@ __PACKAGE__->register_method ({
            PVE::Cluster::Setup::ssh_unmerge_known_hosts();
 
            my $cmd = ['ssh-copy-id', '-i', '/root/.ssh/id_rsa', "root\@$host"];
-           run_command($cmd, 'outfunc' => sub {}, 'errfunc' => sub {},
-                                   'errmsg' => "unable to copy ssh ID");
+           run_command(
+               $cmd, 'outfunc' => sub {}, 'errfunc' => sub {}, 'errmsg' => "unable to copy ssh ID");
 
            $cmd = ['ssh', $host, '-o', 'BatchMode=yes', 'pvecm', 'apiver'];
            my $remote_apiver = 0;
@@ -405,8 +405,7 @@ __PACKAGE__->register_method ({
 
            PVE::Cluster::Setup::assert_we_can_join_cluster_version($remote_apiver);
 
-           $cmd = ['ssh', $host, '-o', 'BatchMode=yes',
-                   'pvecm', 'addnode', $nodename, '--force', 1];
+           $cmd = ['ssh', $host, '-o', 'BatchMode=yes', 'pvecm', 'addnode', $nodename, '--force', 1];
 
            push @$cmd, '--nodeid', $param->{nodeid} if $param->{nodeid};
            push @$cmd, '--votes', $param->{votes} if defined($param->{votes});