Skip to content

Commit

Permalink
Merge pull request #267 from sergey-korolev/multipage_ssh_keys
Browse files Browse the repository at this point in the history
Fix multipage ssh keys
  • Loading branch information
seth-reeser authored Apr 17, 2018
2 parents 9600d35 + 758391a commit fd630f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vagrant-digitalocean/helpers/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def request(path, params = {}, method = :get)
new_path = path.split("?")[0]
next_result = self.request("#{new_path}?#{uri.query}")
req_target = new_path.split("/")[-1]
if req_target == 'keys'
req_target = 'ssh_keys'
end
body["#{req_target}"].concat(next_result["#{req_target}"])
end
rescue JSON::ParserError => e
Expand Down

0 comments on commit fd630f4

Please sign in to comment.