1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5550: increased timeout for oneshowback and decreased for zones

This commit is contained in:
juanmont 2017-11-17 15:52:23 +01:00 committed by Ruben S. Montero
parent fa727a7e13
commit 93b8c6d52d
3 changed files with 5 additions and 3 deletions

View File

@ -417,8 +417,8 @@ EOT
else
sync = true
end
@@client=OpenNebula::Client.new(secret, endpoint, :sync => sync)
options[:sync] = sync
@@client=OpenNebula::Client.new(secret, endpoint, options)
end
end

View File

@ -124,7 +124,8 @@ class OneZoneHelper < OpenNebulaHelper::OneHelper
next if endpoint.nil?
client = OpenNebula::Client.new(nil, endpoint)
options[:timeout] = 5 #5 sec
client = OpenNebula::Client.new(nil, endpoint, options)
xml_doc = client.call("zone.raftstatus")

View File

@ -43,6 +43,7 @@ cmd = CommandParser::CmdParser.new(ARGV) do
helper=OpenNebulaHelper::OneHelper.new
before_proc do
options[:timeout] = 60 #60 sec
helper.set_client(options)
end