From 6c685e61d58959dac82653a34d68e32d9f20cbcc Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Thu, 15 Nov 2012 14:54:28 +0100
Subject: [PATCH] fixes #126

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 cdist/emulator.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cdist/emulator.py b/cdist/emulator.py
index e54bd0dc..42744fab 100644
--- a/cdist/emulator.py
+++ b/cdist/emulator.py
@@ -135,6 +135,8 @@ class Emulator(object):
         self.parameters = {}
         for key,value in vars(self.args).items():
             if value is not None:
+                if isinstance(value, list):
+                    value = '\n'.join(value)
                 self.parameters[key] = value
 
         if self.cdist_object.exists: