From 72fb8270046e0c631b688dc1cf4eeb7ace0fa8a5 Mon Sep 17 00:00:00 2001 From: Rob Lockstone Date: Wed, 8 Aug 2012 18:44:28 -0700 Subject: [PATCH] Change iprange --> ec2_secg in Mock. I assume this was a simple copy/paste error from the code above. Anyway, it fixes the "undefined local variable or method `iprange'" testing error. --- lib/fog/aws/requests/rds/describe_db_security_groups.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/requests/rds/describe_db_security_groups.rb b/lib/fog/aws/requests/rds/describe_db_security_groups.rb index 4a3b3996c..334d1604d 100644 --- a/lib/fog/aws/requests/rds/describe_db_security_groups.rb +++ b/lib/fog/aws/requests/rds/describe_db_security_groups.rb @@ -59,7 +59,7 @@ module Fog # TODO: refactor to not delete items that we're iterating over. Causes # model tests to fail (currently pending) sec_group["EC2SecurityGroups"].each do |ec2_secg| - if ec2_secg["Status"] == "authorizing" || iprange["Status"] == "revoking" + if ec2_secg["Status"] == "authorizing" || ec2_secg["Status"] == "revoking" ec2_secg[:tmp] ||= Time.now + Fog::Mock.delay * 2 if ec2_secg[:tmp] <= Time.now ec2_secg["Status"] = "authorized" if ec2_secg["Status"] == "authorizing"