]> git.proxmox.com Git - pve-cluster.git/commitdiff
pvecm: updatecerts: improve variable naming
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 15:15:55 +0000 (17:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 16:04:41 +0000 (18:04 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/pvecm.pm

index 4bd76f9a7e43ccdd1324a586325aa0f7f0845186..e995e80f2ec304c612185bee912aa6d32c590f37 100755 (executable)
@@ -572,6 +572,7 @@ __PACKAGE__->register_method ({
     returns => { type => 'null' },
     code => sub {
        my ($param) = @_;
+       my ($force_new_cert, $silent) = $param->@{qw(force silent)};
 
        # we get called by the pveproxy.service ExecStartPre and as we do
        # IO (on /etc/pve) which can hang (uninterruptedly D state). That'd be
@@ -584,7 +585,7 @@ __PACKAGE__->register_method ({
                usleep(100 * 1000);
            }
 
-           PVE::Cluster::Setup::updatecerts_and_ssh($param->@{qw(force silent)});
+           PVE::Cluster::Setup::updatecerts_and_ssh($force_new_cert, $silent);
            PVE::Cluster::prepare_observed_file_basedirs();
        });