Skip to content

Commit

Permalink
use id instead of name in SecurityGroup.delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley committed May 9, 2012
1 parent d4f4cfc commit 30f7389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto/ec2/securitygroup.py
Expand Up @@ -82,7 +82,7 @@ def endElement(self, name, value, connection):
setattr(self, name, value)

def delete(self):
return self.connection.delete_security_group(self.name)
return self.connection.delete_security_group(group_id=self.id)

def add_rule(self, ip_protocol, from_port, to_port,
src_group_name, src_group_owner_id, cidr_ip, src_group_group_id):
Expand Down

0 comments on commit 30f7389

Please sign in to comment.