]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/Status/InfluxDB.pm
metrix: influx: fix default api_prefix
[pve-manager.git] / PVE / Status / InfluxDB.pm
index 55c6efcefbdcd3cf012c4e34d37dc84d8b7f96dc..9e4b0d966315b5c4d4e757d7a86dcef299f0093e 100644 (file)
@@ -172,7 +172,7 @@ sub _get_v2url {
     my ($cfg, $api_path) = @_;
     my ($proto, $host, $port) = $cfg->@{qw(influxdbproto server port)};
     my $api_prefix = $cfg->{'api-path-prefix'} // '/';
-    if ($api_prefix ne '' && $api_prefix =~ m!^/*(.+)/*$!) {
+    if ($api_prefix ne '/' && $api_prefix =~ m!^/*(.+)/*$!) {
        $api_prefix = "/$1/";
     }