From 900b0ef8e06e7bb361967fa7868e71868eefb7ce Mon Sep 17 00:00:00 2001 From: Takumi Yanagawa Date: Tue, 20 Aug 2024 10:48:33 +0900 Subject: [PATCH] Update sample code to align compliance-trestle ~= 3.3 Signed-off-by: Takumi Yanagawa --- samples_public/heterogeneous/result_to_compliance.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/samples_public/heterogeneous/result_to_compliance.py b/samples_public/heterogeneous/result_to_compliance.py index 8215841..a801241 100644 --- a/samples_public/heterogeneous/result_to_compliance.py +++ b/samples_public/heterogeneous/result_to_compliance.py @@ -2,10 +2,15 @@ import subprocess from typing import Dict, List -from trestle.oscal.assessment_results import AssessmentResults, ControlSelection +from trestle.oscal.assessment_results import AssessmentResults from trestle.oscal.assessment_results import Model as AssessmentResultsRoot -from trestle.oscal.assessment_results import Result, ReviewedControls, SelectControlById -from trestle.oscal.common import Metadata +from trestle.oscal.assessment_results import Result +from trestle.oscal.common import ( + ControlSelection, + Metadata, + ReviewedControls, + SelectControlById, +) from c2p.framework.oscal_utils import get_datetime, uuid