fix(quickinventory): AttributError when creating inventory table (#2122)

This commit is contained in:
Ben Nugent
2023-03-30 08:18:52 +02:00
committed by Pepe Fagoaga
parent 172bb36dfb
commit 698f299edf
@@ -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: