1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Merge pull request #54 from engineyard/delete-rds-ec2-security-group

not allowed to delete a "revoking" rds firewall
This commit is contained in:
Wesley Beary 2015-02-17 16:17:52 -06:00
commit 41b31b21bf

View file

@ -79,7 +79,7 @@ module Fog
Fog::AWS::RDS::Mock.data[self.region].each do |_, data|
(data[:security_groups] || []).each do |group_name, group|
(group["EC2SecurityGroups"] || []).each do |ec2_group|
if ec2_group["EC2SecurityGroupName"] == name && ec2_group["Status"] != "revoking"
if ec2_group["EC2SecurityGroupName"] == name
used_by_groups << "#{group["OwnerId"]}:#{group_name}"
end
end