common-utils: avoid crashing when a rules section is not defined in the config
This commit is contained in:
parent
ac0d8ee4a8
commit
cb243eea6d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue