Skip to content

Commit

Permalink
get the security group id from the state
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineChikhaoui committed May 20, 2017
1 parent 0fec83d commit 4983f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixops/resources/ec2_security_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def create(self, defn, check, allow_reboot, allow_recreate):

try:
if self.vpc_id:
grp = self._conn.get_all_security_groups([ defn.security_group_id ])[0]
grp = self._conn.get_all_security_groups([ self.security_group_id ])[0]
else:
grp = self._conn.get_all_security_groups([ defn.security_group_name ])[0]
grp = self._conn.get_all_security_groups([ defn.security_group_name ])[0]
self.state = self.UP
self.security_group_id = grp.id
self.security_group_description = grp.description
Expand Down

0 comments on commit 4983f23

Please sign in to comment.