1
0
Fork 0
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:
Rupak Ganguly 2012-04-06 15:26:22 -04:00
parent 9bea716c49
commit 5129a54a3c

View file

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