mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
M #-: Fix issue with retries in clone (#1668)
This commit is contained in:
parent
46bc7fb46d
commit
3209dc5f2d
@ -146,7 +146,13 @@ begin
|
||||
rescue StandardError => e
|
||||
message = "Error clone virtual disk #{src_path} in "\
|
||||
"datastore #{target_ds_name_vc}. "\
|
||||
"Reason: #{e.message}."
|
||||
"Reason: #{e.message}." \
|
||||
"on attempt \##{retries}."
|
||||
|
||||
if (retries += 1) > CONFIG[:retries]
|
||||
message << "\nPlease check vCenter logs directly\n"
|
||||
end
|
||||
|
||||
OpenNebula.log_error(message)
|
||||
if VCenterDriver::CONFIG[:debug_information]
|
||||
STDERR.puts "#{message} #{e.backtrace}"
|
||||
|
Loading…
Reference in New Issue
Block a user