mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
F #4716: Cast the timeout to integer
This commit is contained in:
parent
d9df87c746
commit
ab9b2e8eed
@ -196,7 +196,7 @@ begin
|
||||
when '--authn'
|
||||
authn = arg.split(',').map {|a| a.strip }
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
@ -256,7 +256,7 @@ begin
|
||||
when '--system-ds-types'
|
||||
sys_ds_type = arg.split(',').map {|a| a.strip }
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
@ -132,7 +132,7 @@ begin
|
||||
when '--force-copy'
|
||||
force_copy=true
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
@ -151,7 +151,7 @@ opts = GetoptLong.new(
|
||||
|
||||
i_types = nil
|
||||
threads = 1
|
||||
timeout = 1
|
||||
timeout = nil
|
||||
|
||||
begin
|
||||
opts.each do |opt, arg|
|
||||
@ -161,7 +161,7 @@ begin
|
||||
when '--threads'
|
||||
threads = arg.to_i
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
@ -298,7 +298,7 @@ begin
|
||||
when '--market-types'
|
||||
mp_type = arg.split(',').map {|a| a.strip }
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
@ -1089,7 +1089,7 @@ begin
|
||||
when '--parallel'
|
||||
single_host = false
|
||||
when '--timeout'
|
||||
timeout = arg
|
||||
timeout = arg.to_i
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
|
Loading…
x
Reference in New Issue
Block a user