1
0
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:
Jaime Melis 2016-09-13 15:01:52 +02:00
parent d9df87c746
commit ab9b2e8eed
6 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -132,7 +132,7 @@ begin
when '--force-copy'
force_copy=true
when '--timeout'
timeout = arg
timeout = arg.to_i
end
end
rescue Exception => e

View File

@ -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

View File

@ -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

View File

@ -1089,7 +1089,7 @@ begin
when '--parallel'
single_host = false
when '--timeout'
timeout = arg
timeout = arg.to_i
end
end
rescue Exception => e