Skip to content

Commit

Permalink
Change LogStash::Util::SubstitutionVariables#replace_placeholders ref…
Browse files Browse the repository at this point in the history
…ine argument to optional (#16485)
  • Loading branch information
edmocosta authored Oct 1, 2024
1 parent 2fe9122 commit 8368c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logstash-core/lib/logstash/util/substitution_variables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def deep_replace(value, refine = false)
# If the value does not match the pattern, the 'value' param returns as-is
# When setting refine to true, substituted value will be cleaned against escaped single/double quotes
# and generates array if resolved substituted value is array string
def replace_placeholders(value, refine)
def replace_placeholders(value, refine = false)
if value.kind_of?(::LogStash::Util::Password)
interpolated = replace_placeholders(value.value, refine)
return ::LogStash::Util::Password.new(interpolated)
Expand Down

0 comments on commit 8368c00

Please sign in to comment.