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:
commit
12a70ffe80
1 changed files with 3 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue