diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-11-15 11:57:46 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-11-15 11:57:46 +0100 |
commit | 3697cafd890ccf56d7306320546349a32ce42d48 (patch) | |
tree | f8207a3020e34c602829c733673fdfebfde873d7 /lavalab-gen.py | |
parent | e64ad5a167f3a7cb7491a17a725c6ec365897302 (diff) |
lavalab-gen.py: Add missing newline after overrides
This patch adds missing newline after overrides.
Without them, the generated file is not a valid yaml file
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index 5191f07..6f1dd01 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -249,7 +249,7 @@ def main(): envdir = "%s/env/%s" % (workerdir, slavename) os.mkdir(envdir) fenv = open("%s/env.yaml" % envdir, 'w') - fenv.write("overrides:") + fenv.write("overrides:\n") for line in slaveenv["env"]: fenv.write(" %s\n" % line) fenv.close() @@ -364,7 +364,7 @@ def main(): envdir = "output/%s/%s/env/%s" % (slave_master["host"], slave_master["name"], name) os.mkdir(envdir) fenv = open("%s/env.yaml" % envdir, 'w') - fenv.write("overrides:") + fenv.write("overrides:\n") for line in slave["env"]: fenv.write(" %s\n" % line) fenv.close() |