From eca81a50c712a46ac23c18451c793a2f159c8a91 Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Mon, 28 Aug 2023 08:33:22 -0400 Subject: [PATCH] fix: xccdf parameter type Signed-off-by: Lou DeGenaro --- trestle/transforms/implementations/xccdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trestle/transforms/implementations/xccdf.py b/trestle/transforms/implementations/xccdf.py index e4ee26be6..fa4fbf3f6 100644 --- a/trestle/transforms/implementations/xccdf.py +++ b/trestle/transforms/implementations/xccdf.py @@ -111,7 +111,7 @@ def _ingest_xml(self, blob: str) -> Optional[Results]: results.__root__.append(self._results_factory.result) return results - def _ingest_configmaps(self, jdata: str) -> None: + def _ingest_configmaps(self, jdata: dict) -> None: """Ingest configmaps.""" items = jdata['items'] for item in items: @@ -121,7 +121,7 @@ def _ingest_configmaps(self, jdata: str) -> None: resource = item self._results_factory.ingest(resource) - def _ingest_auditree(self, jdata: str) -> None: + def _ingest_auditree(self, jdata: dict) -> None: """Ingest auditree.""" for key in jdata.keys(): for group in jdata[key]: