mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
bb3db27bec
commit
3297dd48fc
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user