mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[digitalocean|compute] list_ssh_keys request mock fixes
Removing ssh_pub_key was making tests fail when mocking randomly.
This commit is contained in:
parent
5e9034115b
commit
053f6d9b22
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ module Fog
|
|||
response.status = 200
|
||||
response.body = {
|
||||
"status" => "OK",
|
||||
# key listing does not return ssh_pub_key
|
||||
# https://www.digitalocean.com/api#ssh_keys
|
||||
"ssh_keys" => self.data[:ssh_keys].map { |k| k.delete('ssh_pub_key'); k }
|
||||
"ssh_keys" => self.data[:ssh_keys]
|
||||
}
|
||||
response
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue