in get_credentials, we try to read the token for the specified server, and warn if we cannot do that (e.g. because the file does not exist)
since having no token is a valid configuration, suppress that warning on connection. reported by a forum-user: https://forum.proxmox.com/threads/interface-comes-up-with-all-question-marks.83287/page-2#post-438204 Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- alternatively, we could create an empty file on creation, but this does not fix existing installations. PVE/Status/InfluxDB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Status/InfluxDB.pm b/PVE/Status/InfluxDB.pm index cb788c4e..def7e2fd 100644 --- a/PVE/Status/InfluxDB.pm +++ b/PVE/Status/InfluxDB.pm @@ -225,7 +225,7 @@ sub _connect { return $socket; } elsif ($proto =~ m/^https?$/) { - my $token = get_credentials($id); + my $token = get_credentials($id, 1); my $org = $cfg->{organization} // 'proxmox'; my $bucket = $cfg->{bucket} // 'proxmox'; my $url = _get_v2url($cfg, "write?org=${org}&bucket=${bucket}"); -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel