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:
commit
41b31b21bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue