From b568a5886c24554d7b5f13ffd032b04c45b78422 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 11:56:16 +0200 Subject: [PATCH] retrieve explorers from explorer class and allow zero explorers Signed-off-by: Nico Schottelius --- lib/cdist/config_install.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index 9e2b5edc..d0c27e54 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -60,9 +60,8 @@ class ConfigInstall: def run_global_explorers(self): """Run global explorers""" log.info("Running global explorers") - explorers = self.path.list_global_explorers() - if(len(explorers) == 0): - raise cdist.Error("No explorers found in " + self.path.global_explorer_dir) + + explorers = cdist.core.GlobalExplorer.list_explorers() self.path.transfer_global_explorers() for explorer in explorers: