mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix mocks for list_key_pairs.
This commit is contained in:
parent
9bea716c49
commit
5129a54a3c
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module Fog
|
|||
key_pairs = self.data[:key_pairs].values unless self.data[:key_pairs].nil?
|
||||
|
||||
response.status = [200, 203][rand(1)]
|
||||
response.body = { 'keypairs' => key_pairs.map {|keypair| keypair['keypair'].reject {|key,value| !['public_key', 'name', 'fingerprint'].include?(key)}} }
|
||||
response.body = { 'keypairs' => key_pairs }
|
||||
response
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue