From 9045b30136794c5003c17c0d3307a75601321cb0 Mon Sep 17 00:00:00 2001 From: Thomas Reifenberger Date: Fri, 7 Oct 2011 16:07:02 +0200 Subject: [PATCH] fix multiple requirements Signed-off-by: Nico Schottelius --- lib/cdist/emulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index aa22e1fa..8b531e22 100644 --- a/lib/cdist/emulator.py +++ b/lib/cdist/emulator.py @@ -132,7 +132,7 @@ def run(argv): requirements = os.environ['__require'] log.debug(object_id + ":Writing requirements: " + requirements) require_fd = open(os.path.join(object_dir, "require"), "a") - require_fd.writelines(requirements.split(" ")) + require_fd.write(requirements.replace(" ","\n")) require_fd.close() # Record / Append source