From cf5be851f0a9d44eb0db2678d107bac617abc09a Mon Sep 17 00:00:00 2001 From: "Stepan G. Fedorov" Date: Mon, 28 Nov 2011 00:07:36 +0400 Subject: [PATCH] [clodo|compute] Fix delete_server mock. --- lib/fog/clodo/requests/compute/delete_server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/clodo/requests/compute/delete_server.rb b/lib/fog/clodo/requests/compute/delete_server.rb index 1add2f19e..0101ea6d6 100644 --- a/lib/fog/clodo/requests/compute/delete_server.rb +++ b/lib/fog/clodo/requests/compute/delete_server.rb @@ -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))