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

[clodo|compute] Fix delete_server mock.

This commit is contained in:
Stepan G. Fedorov 2011-11-28 00:07:36 +04:00
parent a0b696629d
commit cf5be851f0

View file

@ -22,7 +22,8 @@ module Fog
def delete_server(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_i == server_id }
if server['status'] == 'is_install'
response.status = 405
raise(Excon::Errors.status_error({:expects => 204}, response))