Skip to content

Commit

Permalink
fix(quickinventory): AttributError when creating inventory table (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnugent authored Mar 23, 2023
1 parent 6c3db96 commit a9df609
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9df609

Please sign in to comment.