Fixed missing new line at the end of proxy.conf (#14359)
(cherry picked from commit 5123d8a67362d0091609789a65872ae02df5cccd)
diff --git a/conf/proxy.conf b/conf/proxy.conf
index 5d93959..e4cf8b5 100644
--- a/conf/proxy.conf
+++ b/conf/proxy.conf
@@ -269,4 +269,4 @@
# ZooKeeper cache expiry time in seconds
# Deprecated: use metadataStoreCacheExpirySeconds
-zooKeeperCacheExpirySeconds=-1
\ No newline at end of file
+zooKeeperCacheExpirySeconds=-1
diff --git a/docker/pulsar/scripts/apply-config-from-env.py b/docker/pulsar/scripts/apply-config-from-env.py
index 6e2eb74..8438f137 100755
--- a/docker/pulsar/scripts/apply-config-from-env.py
+++ b/docker/pulsar/scripts/apply-config-from-env.py
@@ -75,7 +75,11 @@
lines[idx] = '%s=%s\n' % (k, v)
- # Add new keys from Env
+ # 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]
if not k.startswith(PF_ENV_PREFIX):