diff --git a/docs/manual/developer/03_creating_content.md b/docs/manual/developer/03_creating_content.md index 0fec8711a1c5..b24e6c82e72a 100644 --- a/docs/manual/developer/03_creating_content.md +++ b/docs/manual/developer/03_creating_content.md @@ -736,6 +736,9 @@ between XCCDF rules which directly implement the given controls (represented by The `rules` and `related_rules` keys consist of a list of rule IDs and variable selections. +If a rule needs to be chosen only in some of the products we can use Jinja macros +inside the controls file to choose products. + After we finish our analysis, we will insert our findings to the controls file, the file will look like this: diff --git a/tests/ssg_test_suite/common.py b/tests/ssg_test_suite/common.py index 9678fb834b9c..ffa25548e180 100644 --- a/tests/ssg_test_suite/common.py +++ b/tests/ssg_test_suite/common.py @@ -314,7 +314,7 @@ def load_rule_and_env(rule_dir_path, env_yaml, product=None): local_env_yaml.update(env_yaml) local_env_yaml['rule_id'] = rule.id_ local_env_yaml['rule_title'] = rule.title - local_env_yaml["products"] = {product} + local_env_yaml['products'] = {product} return rule, local_env_yaml