common-utils: avoid crashing when a rules section is not defined in the config

This commit is contained in:
George Kiagiadakis 2023-11-15 12:57:41 +02:00
parent ac0d8ee4a8
commit cb243eea6d
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ end
function cutils.evaluateRulesApplyProperties (properties, name)
local section = Conf.get_section (name)
if not section then
return
end
local matched, mprops = JsonUtils.match_rules_update_properties (
section, properties)