Skip to content

Commit

Permalink
fix: replace the deprecated method ospro.SelectControlById() to ospro…
Browse files Browse the repository at this point in the history
….SelectControl()

Signed-off-by: Ma1h01 <[email protected]>
  • Loading branch information
Ma1h01 committed Jun 26, 2024
1 parent 13f0409 commit b4e48a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CIS_controls/create_cis_catalogs_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def run(input_xls: pathlib.Path, output_directory: pathlib.Path, cis_version: st
def write_profile(profile: ospro.Profile, control_list: List[str], path: pathlib.Path):
"""Fill in control list and write the profile."""
include_controls: List[str] = []
selector = ospro.SelectControlById()
selector = ospro.SelectControl()
selector.with_ids = control_list
include_controls.append(selector)
profile.imports[0].include_controls = include_controls
Expand Down

0 comments on commit b4e48a2

Please sign in to comment.