[PATCH ha-manager 0/2] fix param check for rules updates and

Michael Köppl
2026-03-24T12:49:45Z

This series fixes the PUT API endpoint for updating a HA rule.
Previously, it would fail if the resources parameter was not set at all
as part of the request, even though the param is optional As part of an
E2E test run, the error showed up as

500 update HA rules failed: Can't use an undefined value as a HASH
reference at /usr/share/perl5/PVE/API2/HA/Rules.pm line 48.

In addition, 2/2 fixes wrong formatting introduced by a recent commit.

pve-ha-manager:

Michael Köppl (2):
api: assert validity of resources param only if defined
format code with perltidy

src/PVE/API2/HA/Rules.pm | 2 +-
src/PVE/HA/Usage/Static.pm | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)

Summary over all repositories:
2 files changed, 5 insertions(+), 3 deletions(-)

--
Generated by murpp 0.11.0