Change LogStash::Util::SubstitutionVariables#replace_placeholders refine argument to optional (#16485) (#16487)

(cherry picked from commit 8368c00367)

Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-10-01 12:06:28 -07:00 committed by GitHub
parent 97513f76d7
commit 1a8676dc7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ module ::LogStash::Util::SubstitutionVariables
# 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)