Allow community layouts to be specified in info.json (#14682)
* move the community layout detection to python * fixup tests
This commit is contained in:
parent
f72b2ad720
commit
20f81af98a
4 changed files with 21 additions and 31 deletions
|
@ -26,7 +26,7 @@ def process_mapping_rule(kb_info_json, rules_key, info_dict):
|
|||
except KeyError:
|
||||
return None
|
||||
|
||||
if key_type == 'array':
|
||||
if key_type in ['array', 'list']:
|
||||
return f'{rules_key} ?= {" ".join(rules_value)}'
|
||||
elif key_type == 'bool':
|
||||
return f'{rules_key} ?= {"on" if rules_value else "off"}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue