1
0
Fork 0

Allow community layouts to be specified in info.json (#14682)

* move the community layout detection to python

* fixup tests
This commit is contained in:
Zach White 2021-10-04 09:26:19 -07:00 committed by GitHub
parent f72b2ad720
commit 20f81af98a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 31 deletions

View file

@ -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"}'