Skip to content

Commit

Permalink
catch the case where the security group is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineChikhaoui committed Jun 20, 2017
1 parent 429bf93 commit b4c52c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixops/ec2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ def id_to_security_group_name(conn, sg_id, vpc_id):
if sg.id == sg_id:
name = sg.name
return name
raise Exception("could not resolve security group id '{0}' in VPC '{1}'".format(sg_id, vpc_id))

0 comments on commit b4c52c3

Please sign in to comment.