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

Merge pull request #1076 from lockstone/master

Change iprange --> ec2_secg in Mock.
This commit is contained in:
Wesley Beary 2012-08-08 20:26:19 -07:00
commit b36744aa2c

View file

@ -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"