From 431670cd468693ca4581ec43d8de5d32413ec113 Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Mon, 28 Aug 2023 13:00:54 -0400 Subject: [PATCH] fix: xccdf parameter type (#1440) 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]: