Skip to content

Commit

Permalink
Last commit missed a bug, this fixes it
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis McPeak committed Aug 2, 2017
1 parent f054953 commit 40992a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repokid/utils/dynamo.py
Expand Up @@ -120,7 +120,7 @@ def find_role_in_cache(dynamo_table, account_number, role_name):
string: RoleID for active role with name in given account, else None
"""
for roleID in role_ids_for_account(dynamo_table, account_number):
role_data = get_role_data(dynamo_table, roleID, fields=['RoleName', 'Active'])
role_data = get_role_data(dynamo_table, roleID, fields=['RoleName', 'Active', 'RoleId'])
if role_data['RoleName'].lower() == role_name.lower() and role_data['Active']:
return role_data['RoleId']

Expand Down

0 comments on commit 40992a0

Please sign in to comment.