mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
(cherry picked from commit 3297dd48fc)
This commit is contained in:
1 parent
d9d9f90a7e
commit
f647662ec0
2 files changed
+7
-1
No files matched your search
@@ -149,6 +149,8 @@ module OneProvision
|
||||
|
||||
raise OneProvisionLoopException, errors
|
||||
end
|
||||
rescue StandardError
|
||||
raise OneProvisionLoopException
|
||||
end
|
||||
|
||||
# Retries ssh connection
|
||||
|
||||
@@ -115,13 +115,17 @@ module OneProvision
|
||||
instance.run_mode[:fail_choice] = :cleanup
|
||||
elsif options.key? :fail_retry
|
||||
instance.run_mode[:fail_choice] = :retry
|
||||
instance.run_mode[:max_retries] = options[:fail_retry].to_i
|
||||
elsif options.key? :fail_skip
|
||||
instance.run_mode[:fail_choice] = :skip
|
||||
elsif options.key? :fail_quit
|
||||
instance.run_mode[:fail_choice] = :quit
|
||||
else
|
||||
instance.run_mode[:fail_choice] = FAIL_CHOICE_DEFAULT
|
||||
end
|
||||
|
||||
if options[:fail_retry]
|
||||
instance.run_mode[:max_retries] = options[:fail_retry].to_i
|
||||
else
|
||||
instance.run_mode[:max_retries] = MAX_RETRIES_DEFAULT
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user