Skip to content

Commit 67ef267

Browse files
committed
Fix frozen string modification error
1 parent e6e0c1c commit 67ef267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/functions/accounts_ssh_options_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def accounts_ssh_options_parser_string(str)
1717
str.scan(%r{\G\,*(?>([^\,\\\'\"]+)|'([^\']*)'|("(?:[^\"\\]|\\.)*")|(\\.?)|(\S))(\,|\z)?}m) do |word, sq, dq, esc, garbage, sep|
1818
raise ArgumentError, _('Unmatched double quote: %{str_inspect}') % { str_inspect: str.inspect } if garbage
1919

20-
field << (word || sq || dq || esc.gsub(%r{\\(.)}, '\\1'))
20+
field += (word || sq || dq || esc.gsub(%r{\\(.)}, '\\1'))
2121
field.gsub(%r{\\=}, '\\=\"')
2222
if sep
2323
words << field

0 commit comments

Comments
 (0)