# File lib/fog/compute/requests/aws/delete_security_group.rb, line 32 def delete_security_group(name) response = Excon::Response.new if self.data[:security_groups][name] self.data[:security_groups].delete(name) response.status = 200 response.body = { 'requestId' => Fog::AWS::Mock.request_id, 'return' => true } response else raise Fog::Compute::AWS::NotFound.new("The security group '#{name}' does not exist") end end