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:
parent
c862c82da8
commit
8f5c175880
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user