]> git.proxmox.com Git - pve-manager.git/commitdiff
api: metrics: use complete config for testing the connection
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 15 Nov 2021 13:57:19 +0000 (14:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 15:17:51 +0000 (16:17 +0100)
not only the given parameters, e.g. at the moment, the gui will
never send a 'verify-certificate' parameter, even if set in the config

by using the complete resulting config, we test the actual settings.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Cluster/MetricServer.pm

index a6b99d4fcf65ecd5869f0a06e0fba760660dfcaa..882cda101ea2723bc868729797a083c1d18cc686 100644 (file)
@@ -238,7 +238,7 @@ __PACKAGE__->register_method ({
 
            $plugin->on_update_hook($id, $data, $sensitive_params);
 
-           $plugin->test_connection($opts, $id);
+           $plugin->test_connection($data, $id);
 
            PVE::Cluster::cfs_write_file('status.cfg', $cfg);
        });