[fix][broker] ensure new line added before appending new keys from env
@@ -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]
