diff --git a/inspector_exporter/collector.py b/inspector_exporter/collector.py index 16e8b4c..6b066b9 100644 --- a/inspector_exporter/collector.py +++ b/inspector_exporter/collector.py @@ -73,15 +73,12 @@ def refresh_image_cache(self): } ], aggregationRequest={ - 'awsEcrContainerAggregation': { - 'sortBy': 'ALL', - 'sortOrder': 'DESC' - } + "awsEcrContainerAggregation": {"sortBy": "ALL", "sortOrder": "DESC"} }, aggregationType="AWS_ECR_CONTAINER", PaginationConfig={"pageSize": 1000}, ).build_full_result() - + for image_finding in image_findings["responses"]: repositoryName = image_finding["awsEcrContainerAggregation"]["repository"]