]> git.proxmox.com Git - pve-ha-manager.git/commit
crs: avoid auto-vivification when adding node to service usage
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 5 Oct 2023 14:05:46 +0000 (16:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Oct 2023 10:27:04 +0000 (12:27 +0200)
commit1c61138341201710bad828191488a457e514e00f
tree0bcfd2122acb1998a9b3e776d10aec67c36b89d9
parentc7843a315de203f9a44e2d2569f157711324ad56
crs: avoid auto-vivification when adding node to service usage

Part of what caused bug #4984. Make the code future-proof and warn
when the node was never registered in the plugin, similar to what the
'static' usage plugin already does.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ TL: rework commit message subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Usage/Basic.pm