From 4af3c0c6d561834efad875fbf7e8efa1f95a5d58 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 30 Aug 2017 23:57:47 +0200 Subject: [PATCH] Fix empty conf_dir configuration value. --- cdist/exec/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cdist/exec/local.py b/cdist/exec/local.py index 0e84c9d7..1f2c66a3 100644 --- a/cdist/exec/local.py +++ b/cdist/exec/local.py @@ -152,7 +152,9 @@ class Local(object): # cdist_path_dirs.reverse() # self.conf_dirs.extend(cdist_path_dirs) if 'conf_dir' in self.configuration: - self.conf_dirs.extend(self.configuration['conf_dir']) + conf_dirs = self.configuration['conf_dir'] + if conf_dirs: + self.conf_dirs.extend(conf_dirs) # Add command line supplied directories if self._add_conf_dirs: