Skip to content

Pre-filter IOCs by name

Simon Rose requested to merge simonrose/ics-ans-role-ioc:better_filter into master

Unfortunately jinja does not lazily evaluate conditionals. Hence

ioc.name in iocs_to_deploy and ioc.ioc_type == "conda"

will fail if ioc_type is not provided (for example, because we did not clone an IOC and so never parsed its metadata). Thus we switch this to pre-parsing all of the IOCs for those we shall deploy.

Merge request reports

Loading