1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|compute] fix rackspace server compare

This commit is contained in:
Josh Lane & Jason Hansen 2012-05-08 10:00:26 -07:00 committed by Jason Hansen & Josh Lane
parent 244ea80f6d
commit e7228a2dde

View file

@ -37,7 +37,7 @@ module Fog
def get_server_details(server_id)
response = Excon::Response.new
if server = list_servers_detail.body['servers'].detect {|_| _['id'] == server_id}
if server = list_servers_detail.body['servers'].detect {|_| _['id'].to_s == server_id.to_s}
response.status = [200, 203][rand(1)]
response.body = { 'server' => server }
response