From 820eea56fb5a2cde0784eadedf6bf5710061a534 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Oct 2011 09:27:16 +0200 Subject: [PATCH] install finish Signed-off-by: Nico Schottelius --- lib/cdist/config_install.py | 2 +- lib/cdist/type.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index 9a84c2cf..39ee79c6 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -68,7 +68,7 @@ class ConfigInstall: log.info("Running global explorers") explorers = self.path.list_global_explorers() if(len(explorers) == 0): - raise CdistError("No explorers found in", self.path.global_explorer_dir) + raise CdistError("No explorers found in ", self.path.global_explorer_dir) self.path.transfer_global_explorers() for explorer in explorers: diff --git a/lib/cdist/type.py b/lib/cdist/type.py index e1c5f589..e6c35ad1 100644 --- a/lib/cdist/type.py +++ b/lib/cdist/type.py @@ -46,6 +46,10 @@ class Type(object): """Check whether a type is used for installation (if not: for configuration)""" return os.path.isfile(os.path.join(self.path, "install")) + def explorer_dir(self): + """Return remote directory that holds the explorers of a type""" + return os.path.join(self.remote_path, "explorer") + def remote_explorer_dir(self): """Return remote directory that holds the explorers of a type""" return os.path.join(self.remote_path, "explorer")