From ad80568ea1d36032ba445db59ead4034edc6da9a Mon Sep 17 00:00:00 2001 From: Josh Lane Date: Tue, 17 Feb 2015 08:56:33 -0800 Subject: [PATCH] not allowed to delete a "revoking" rds firewall --- lib/fog/aws/requests/compute/delete_security_group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/requests/compute/delete_security_group.rb b/lib/fog/aws/requests/compute/delete_security_group.rb index 18486c067..d02e4abf5 100644 --- a/lib/fog/aws/requests/compute/delete_security_group.rb +++ b/lib/fog/aws/requests/compute/delete_security_group.rb @@ -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