retrieve explorers from explorer class and allow zero explorers

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 11:56:16 +02:00
parent 73fa0e1ab7
commit b568a5886c

View file

@ -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: