Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
apls777 committed Sep 18, 2018
1 parent 0aff11c commit 3d724d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotty/helpers/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def get_volume(ec2, volume_name: str):
if len(res['Volumes']) > 1:
raise ValueError('Several volumes with Name=%s found.' % volume_name)

snapshot = res['Volumes'][0] if len(res['Volumes']) else {}
volume = res['Volumes'][0] if len(res['Volumes']) else {}

return snapshot
return volume


def get_instance_ip_address(ec2, stack_name):
Expand Down

0 comments on commit 3d724d7

Please sign in to comment.