From a9df6095936d460c00c3c170cd14a792d343aa99 Mon Sep 17 00:00:00 2001 From: Ben Nugent Date: Thu, 23 Mar 2023 05:22:14 -0400 Subject: [PATCH] fix(quickinventory): AttributError when creating inventory table (#2122) --- prowler/providers/aws/lib/quick_inventory/quick_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler/providers/aws/lib/quick_inventory/quick_inventory.py b/prowler/providers/aws/lib/quick_inventory/quick_inventory.py index e26c9a9944..391c9be329 100644 --- a/prowler/providers/aws/lib/quick_inventory/quick_inventory.py +++ b/prowler/providers/aws/lib/quick_inventory/quick_inventory.py @@ -166,7 +166,7 @@ def create_inventory_table(resources: list, resources_in_region: dict) -> dict: elif "documentation" in split_parts and "parts" in split_parts: resource_type = "restapis-documentation-parts" else: - resource_type = resource.split(":")[5].split("/")[1] + resource_type = resource["arn"].split(":")[5].split("/")[1] else: resource_type = resource["arn"].split(":")[5].split("/")[0] if service not in resources_type: