Skip to content

Commit 289ffed

Browse files
committed
B #7404: Coerce Restic retry options
Coerce :retries and :delay in run_with_lock_retry before using them. This preserves the previous remove_snapshots behavior for callers passing retry options as strings.
1 parent 4c402c6 commit 289ffed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/datastore_mad/remotes/restic/restic.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def run_with_lock_retry(name, script, rhost, opts = {})
343343
:delay => 5
344344
}.merge!(opts)
345345

346+
options[:retries] = options[:retries].to_i
347+
options[:delay] = options[:delay].to_i
348+
346349
rc = nil
347350
options[:retries].times do
348351
rc = run_action name, script, rhost

0 commit comments

Comments
 (0)