]> git.proxmox.com Git - pve-manager.git/commit
ceph: services: broadcast versions: improve requesting old version
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 30 Nov 2021 10:38:12 +0000 (11:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 06:29:58 +0000 (08:29 +0200)
commit25bea0573353eef3fa6946da2144dd2766afaf96
treef858ecb2af822c3229254697d66b8c0145fd5220
parentdd8b3252af35b07657f12cad6245a11e7e021400
ceph: services: broadcast versions: improve requesting old version

to avoid a "malformed JSON string" warning when there is no old
version present (e.g. after starting a cluster).

get_node_kv will always return something that evaluates to true, so
instead, test if the result has an entry for the current node. Also,
it's enough to request the kv for the current node only.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Ceph/Services.pm