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:
parent
244ea80f6d
commit
e7228a2dde
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue