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

Merge pull request #643 from restebanez/master

Fixing rds mocking bug: It always shows the first instance when using servers.get
This commit is contained in:
Wesley Beary 2011-12-07 12:11:47 -08:00
commit 12a70ffe80

View file

@ -40,9 +40,10 @@ module Fog
server_set << server server_set << server
else else
raise Fog::AWS::RDS::NotFound.new("DBInstance #{identifier} not found") raise Fog::AWS::RDS::NotFound.new("DBInstance #{identifier} not found")
end end
else
server_set = self.data[:servers].values
end end
server_set = self.data[:servers].values
server_set.each do |server| server_set.each do |server|
case server["DBInstanceStatus"] case server["DBInstanceStatus"]