1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Feature #817: Fix bad http error detection

This commit is contained in:
Carlos Martín 2011-09-23 12:09:37 +02:00
parent c862c82da8
commit 8f5c175880
2 changed files with 2 additions and 5 deletions

View File

@ -56,7 +56,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
helper.addhost(args[0], args[1], options)
end
command :delhost, 'Deletes the set of hosts to the VDC',
command :delhost, 'Deletes the set of hosts from the VDC',
:vdcid, :range do
helper.delhost(args[0], args[1], options)
end

View File

@ -176,10 +176,7 @@ EOT
end
def self.is_http_error?(value)
value.class == Net::HTTPInternalServerError ||
value.class == Net::HTTPBadRequest ||
value.class == Net::HTTPNotFound ||
value.class == Net::HTTPUnauthorized
value.class != Net::HTTPOK
end
def self.parse_error(value, kind)