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:
parent
fa727a7e13
commit
93b8c6d52d
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user