We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a6a990 commit 932637bCopy full SHA for 932637b
src/datastore_mad/remotes/restic/restic.rb
@@ -97,7 +97,8 @@ def initialize(action, opts = {})
97
98
@restic_bin = RESTIC_BIN_PATHS[@options[:host_type]]
99
100
- @passwd = @doc.elements["#{prefix}TEMPLATE/RESTIC_PASSWORD"].text.sub(/\A['"](.*)['"]\z/, '\1')
+ passwd_s = @doc.elements["#{prefix}TEMPLATE/RESTIC_PASSWORD"]
101
+ @passwd = passwd_s.text.sub(/\A['"](.*)['"]\z/, '\1')
102
103
@bwlimit = safe_get("#{prefix}TEMPLATE/RESTIC_BWLIMIT", -1)
104
@maxproc = Integer(safe_get("#{prefix}TEMPLATE/RESTIC_MAXPROC", -1))
0 commit comments