You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/05/14 03:12:05 UTC
[pulsar] branch master updated: [fix][broker] ensure new line added before appending new keys from env (#15596)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 74b2c70bb0f [fix][broker] ensure new line added before appending new keys from env (#15596)
74b2c70bb0f is described below
commit 74b2c70bb0f661ef2f6b6689232c10850024d03d
Author: Mark Silcox <63...@users.noreply.github.com>
AuthorDate: Sat May 14 04:11:58 2022 +0100
[fix][broker] ensure new line added before appending new keys from env (#15596)
---
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 31c53770895..0890f1b8d7b 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 @@ for conf_filename in conf_files:
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]