Skip to content

Commit

Permalink
fix _get_account_tags()
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Jan 2, 2025
1 parent 0b0cb51 commit 320ec4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/ListAccounts/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def _get_account_tags(accounts: List[AccountType]) -> List[AccountTypeWithTags]:
tags = ORG_CLIENT.list_tags_for_resource(
# Haven't seen a situation where Id is not present
ResourceId=account.get('Id', '')
)
account_with_tags = {**account, **tags}
).get('Tags')
account_with_tags = {**account, 'Tags': tags}
accounts_with_tags.append(account_with_tags)
return accounts_with_tags

Expand Down

0 comments on commit 320ec4e

Please sign in to comment.