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
|
||||
else
|
||||
raise Fog::AWS::RDS::NotFound.new("DBInstance #{identifier} not found")
|
||||
end
|
||||
end
|
||||
else
|
||||
server_set = self.data[:servers].values
|
||||
end
|
||||
server_set = self.data[:servers].values
|
||||
|
||||
server_set.each do |server|
|
||||
case server["DBInstanceStatus"]
|
||||
|
|
Loading…
Reference in a new issue