Skip to content

Commit

Permalink
Add the references to the selected rules
Browse files Browse the repository at this point in the history
Change Control.add_references() to iterate over the selected rules, not
the listed rules.

There can be differences on the rules in 'selected' and 'rules'.
When the Control is resolved, the final list of selected rules is in
'selected'.
This is particularly more evident when we are importing other controls.
  • Loading branch information
yuumasato committed Aug 26, 2024
1 parent 1d75193 commit 9fa81e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssg/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def represent_as_dict(self):
return data

def add_references(self, reference_type, rules):
for selection in self.rules:
for selection in self.selections:
if "=" in selection:
continue
rule = rules.get(selection)
Expand Down

0 comments on commit 9fa81e8

Please sign in to comment.