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:
parent
a0b696629d
commit
cf5be851f0
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue