Skip to content

Commit 1a8676d

Browse files
Change LogStash::Util::SubstitutionVariables#replace_placeholders refine argument to optional (#16485) (#16487)
(cherry picked from commit 8368c00) Co-authored-by: Edmo Vamerlatti Costa <[email protected]>
1 parent 97513f7 commit 1a8676d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logstash-core/lib/logstash/util/substitution_variables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def deep_replace(value, refine = false)
5151
# If the value does not match the pattern, the 'value' param returns as-is
5252
# When setting refine to true, substituted value will be cleaned against escaped single/double quotes
5353
# and generates array if resolved substituted value is array string
54-
def replace_placeholders(value, refine)
54+
def replace_placeholders(value, refine = false)
5555
if value.kind_of?(::LogStash::Util::Password)
5656
interpolated = replace_placeholders(value.value, refine)
5757
return ::LogStash::Util::Password.new(interpolated)

0 commit comments

Comments
 (0)