M #-: Fix issue with retries in clone (#1668)

This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2021-12-13 17:53:13 +01:00
1 parent 46bc7fb46d
commit 3209dc5f2d
1 file changed
+7 -1
+7 -1
View File
@@ -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}"