From 4d6a53c9604a79b5ec5e8f80df0a281142d95d35 Mon Sep 17 00:00:00 2001 From: degenaro Date: Tue, 14 Jun 2022 21:10:37 -0400 Subject: [PATCH] fix: Fix links (#20) * fix links. * Make code-lint happy Signed-off-by: Ekaterina Nikonova Co-authored-by: Ekaterina Nikonova --- ISM_catalog_profile/scripts/ISM/ISM.py | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ISM_catalog_profile/scripts/ISM/ISM.py b/ISM_catalog_profile/scripts/ISM/ISM.py index 310deeb..6ff1d49 100755 --- a/ISM_catalog_profile/scripts/ISM/ISM.py +++ b/ISM_catalog_profile/scripts/ISM/ISM.py @@ -130,14 +130,14 @@ def create_ism_catalog(self, version: str) -> None: - below this will be parts """ # Get list of top level controls - tl_group_titles = set(map(lambda x: x['Guideline'], ism_controls)) + tl_group_titles = {x['Guideline'] for x in ism_controls} groups = [] for tl_group_name in tl_group_titles: group = catalog.Group(id=self._name_clean(tl_group_name), title=tl_group_name) # now add l2 groups control_subset = list(filter(lambda x: x['Guideline'] == tl_group_name, ism_controls)) # get set l2 group names. - l2_group_titles = set(map(lambda x: x[l2_group_key], control_subset)) + l2_group_titles = {x[l2_group_key] for x in control_subset} l2_groups = [] for l2_group_name in l2_group_titles: clean_id = self._name_clean(l2_group_name) diff --git a/README.md b/README.md index 73f12b0..58f52f1 100644 --- a/README.md +++ b/README.md @@ -64,11 +64,11 @@ The Centre for Internet Security (CIS) produce a number of cross industry standa *Convert a spreadsheet into a `component-definition`* -This [demonstration](./trestle_task_spread_sheet_to_component_definition) shows how to use the `trestle task xlsx-to-oscal-component-definition` functionality. +This [demonstration](./trestle_task_spread_sheet_to_component_definition) shows how to use the `trestle task xlsx-to-oscal-cd` functionality. *Convert an OpenShift Compliance Operator (OSCO) results into a partial `assessment-results`* -This [demonstration](./trestle_task_osco_to_oscal) shows how to use the `trestle task osco-to-oscal` functionality. +This [demonstration](./trestle_task_osco_result_to_oscal_ar) shows how to use the `trestle task osco_result_to_oscal_ar` functionality. ## Trestle as Foundation Examples