lib/learn_web/client/ssh_keys.rb in learn-web-1.5.2 vs lib/learn_web/client/ssh_keys.rb in learn-web-1.5.3
- old
+ new
@@ -9,10 +9,10 @@
def add_ssh_key(key:, key_title: nil, client: nil)
response = post(
add_ssh_key_endpoint,
headers: { 'Authorization' => "Bearer #{token}" },
- params: { 'key' => key, key_title: key_title }.compact,
+ params: { 'key' => key, key_title: key_title }.reject { |_, v| v.nil? },
client: client
)
LearnWeb::Client::SshKeys::Add.new(response).parse!
end