Skip to content

Commit

Permalink
Minor fixes after removal of prodtype
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyz committed Feb 12, 2024
1 parent a623596 commit 1dc8a6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/manual/developer/03_creating_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion tests/ssg_test_suite/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1dc8a6c

Please sign in to comment.