[pmg-devel] [PATCH pmg-api] api: relaod ruledb on updating objecgroups
Dominik Csapak
d.csapak at proxmox.com
Thu Feb 22 11:04:57 CET 2024
previously they only contained metadata (name/comment) so for the
rulesystem that was not relevant. Now with the attributes and/invert
we want to reload the ruledb on update too.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PMG/API2/ObjectGroupHelpers.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PMG/API2/ObjectGroupHelpers.pm b/src/PMG/API2/ObjectGroupHelpers.pm
index 3060157..fabfa6a 100644
--- a/src/PMG/API2/ObjectGroupHelpers.pm
+++ b/src/PMG/API2/ObjectGroupHelpers.pm
@@ -289,6 +289,8 @@ sub register_object_group_config_api {
$rdb->save_group($og);
+ PMG::DBTools::reload_ruledb();
+
return undef;
}});
}
--
2.30.2
More information about the pmg-devel
mailing list