diff --git a/lib/fog/digitalocean/requests/compute/get_server_details.rb b/lib/fog/digitalocean/requests/compute/get_server_details.rb index a14b61fa5..baad87a1e 100644 --- a/lib/fog/digitalocean/requests/compute/get_server_details.rb +++ b/lib/fog/digitalocean/requests/compute/get_server_details.rb @@ -16,7 +16,17 @@ module Fog class Mock def get_server_details(server_id) - Fog::Mock.not_implemented + response = Excon::Response.new + response.status = 200 + + server = self.data[:servers].find { |s| s['id'] == server_id } + + response.body = { + "status" => "OK", + "droplet" => self.data[:servers].find { |s| s['id'] == server_id } + } + + response end end