]> git.proxmox.com Git - pmg-api.git/commit
RuleCache: implement and/invert for when/from/to
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 21 Feb 2024 12:24:32 +0000 (13:24 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 21 Feb 2024 18:30:13 +0000 (19:30 +0100)
commiteaf6270f20793e90f9cac7cfd82ed59f1279fef2
tree124694f3f97baa3ffff9087d086364c18374f9a3
parent4ffb26d2fafe559f6362486b51f774ba05a7a3d7
RuleCache: implement and/invert for when/from/to

by introducing 'match_list_with_mode' that gets called for each group
and then on the result of each group match result.

This does not work for 'what' matches since they are not a simple
yes/no match (they include the parts) so this will be done seperately.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PMG/RuleCache.pm