From 1f7e19c504b353f864914d3a9bc809fac10c3ecf Mon Sep 17 00:00:00 2001 From: Mark Silcox Date: Fri, 13 May 2022 17:40:01 +0100 Subject: [PATCH] [fix][broker] ensure new line added before appending new keys from env --- docker/pulsar/scripts/apply-config-from-env-with-prefix.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/pulsar/scripts/apply-config-from-env-with-prefix.py b/docker/pulsar/scripts/apply-config-from-env-with-prefix.py index 31c5377089570..0890f1b8d7b94 100755 --- a/docker/pulsar/scripts/apply-config-from-env-with-prefix.py +++ b/docker/pulsar/scripts/apply-config-from-env-with-prefix.py @@ -73,6 +73,10 @@ lines[idx] = '%s=%s\n' % (k, v) + # Ensure we have a new-line at the end of the file, to avoid issue + # when appending more lines to the config + lines.append('\n') + # Add new keys from Env for k in sorted(os.environ.keys()): v = os.environ[k]