Skip to content

Commit

Permalink
Added role assumption testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Grzelak committed Nov 1, 2016
1 parent 030eb05 commit e09dbe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elevation/assume_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def main(args):
if(line and not line.startswith('#')):
result = attempt_assume_role(line)
all_results.append(result)
print(json.dumps(result, indent=2))
if result['result'] == 'success':
print(json.dumps(result, indent=2))
args.input_file.close()
else:
role_arns = get_role_arns()
Expand Down

0 comments on commit e09dbe3

Please sign in to comment.