From b4e48a2de7ab3a6b2d697978437bc4ffafaf5d6e Mon Sep 17 00:00:00 2001 From: Ma1h01 Date: Wed, 26 Jun 2024 17:01:10 -0400 Subject: [PATCH] fix: replace the deprecated method ospro.SelectControlById() to ospro.SelectControl() Signed-off-by: Ma1h01 --- CIS_controls/create_cis_catalogs_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CIS_controls/create_cis_catalogs_profiles.py b/CIS_controls/create_cis_catalogs_profiles.py index 91ecdee..da579ff 100644 --- a/CIS_controls/create_cis_catalogs_profiles.py +++ b/CIS_controls/create_cis_catalogs_profiles.py @@ -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