mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Service / Intrusion Detection / Policies: type error in 'enabled' field (bool vs str), closes https://github.com/opnsense/core/issues/4753
This commit is contained in:
parent
90ad674928
commit
2696e42d3a
@ -66,7 +66,7 @@ if __name__ == '__main__':
|
||||
# generate altered rule
|
||||
if 'enabled' in rule_updates[rule_info_record['metadata']['sid']]:
|
||||
# enabled / disabled in configuration
|
||||
if (rule_updates[rule_info_record['metadata']['sid']]['enabled']) == '0':
|
||||
if not rule_updates[rule_info_record['metadata']['sid']]['enabled']:
|
||||
rule = ('#%s' % rule[i:])
|
||||
else:
|
||||
rule = rule[i:]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user