From 8b0eb5766af4fb4545baa116237690e58ed36dec Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 20 Dec 2013 10:56:46 +0100 Subject: [PATCH] bugfix: handle non-existent default Signed-off-by: Steven Armstrong --- cdist/emulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist/emulator.py b/cdist/emulator.py index 1e530fec..78597621 100644 --- a/cdist/emulator.py +++ b/cdist/emulator.py @@ -48,8 +48,8 @@ class DefaultList(list): @classmethod def create(cls, initial=None): if initial: - initial = initial.split('\n') - return cls(initial) + return cls(initial.split('\n')) + return cls() class Emulator(object):