]> git.proxmox.com Git - proxmox-backup.git/commit
ui: metrics: don't send digest when creating a new influxdbupd host
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 6 Mar 2024 11:21:00 +0000 (12:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Mar 2024 09:30:40 +0000 (10:30 +0100)
commit19458d754e069b36978e2c87e467495cc8112b7c
tree8f47f3d6c9bc7e8c96ecb9410b0baa7825a8febd
parent38fd54fbc80d5d614cd33a3484c778f01bcdc42c
ui: metrics: don't send digest when creating a new influxdbupd host

we accidentally always tried to load an existing config, even when
creating a new entry. This returned the list of all configured ones plus
the digest (which gets set by the edit window). When the digest is set,
the edit window will send it along, but that does not exist for the
create api call, so it failed.

To fix it, guard the load behind the `serverid` property, which is only
set when we edit an existing entry.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/window/InfluxDbEdit.js