]> git.proxmox.com Git - pmg-api.git/commit
RuleCache: reorganize to keep group structure
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 9 Feb 2024 12:54:26 +0000 (13:54 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 20 Feb 2024 14:45:27 +0000 (15:45 +0100)
commit64ba4c0d3dce591519e4f18547929637fcf4fb89
treeb1bc4c4958c6846914e5415eebd47c3569aae107
parent9dc262a7aeaf8722596bdbc744c185a5045ac040
RuleCache: reorganize to keep group structure

Currently we 'or' combine all objects of a type (from/to/what/when)
regardless of group, so we only keep a single list of all objects.

Since we want to introduce different logic (and/invert) we want to keep
the configured group structure. This patch does this, without changing
the current matching logic (still all 'or'-ed).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[S.I.: fix 2 typos in commit-message]
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/RuleCache.pm