mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-31 07:44:21 +00:00
fix(quickinventory): AttributError when creating inventory table (#2122)
This commit is contained in:
1 parent
6c3db9646e
commit
a9df609593
1 file changed
+1
-1
@@ -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:
|
elif "documentation" in split_parts and "parts" in split_parts:
|
||||||
resource_type = "restapis-documentation-parts"
|
resource_type = "restapis-documentation-parts"
|
||||||
else:
|
else:
|
||||||
resource_type = resource.split(":")[5].split("/")[1]
|
resource_type = resource["arn"].split(":")[5].split("/")[1]
|
||||||
else:
|
else:
|
||||||
resource_type = resource["arn"].split(":")[5].split("/")[0]
|
resource_type = resource["arn"].split(":")[5].split("/")[0]
|
||||||
if service not in resources_type:
|
if service not in resources_type:
|
||||||
|
|||||||
Reference in new issue
Block a user