From fd2fa235647bbd86e86ad0cd59b741fb44647a43 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 16:27:15 +0200 Subject: [PATCH] fix typeexplorer transfer Signed-off-by: Nico Schottelius --- lib/cdist/config_install.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index ad8a13b9..eeb9e4c0 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -291,7 +291,7 @@ class ConfigInstall: def transfer_type_explorers(self, cdist_type): """Transfer explorers of a type, but only once""" if cdist_type.transferred_explorers: - log.debug("Skipping retransfer for explorers of %s", type) + log.debug("Skipping retransfer for explorers of %s", cdist_type) return else: # Do not retransfer @@ -300,10 +300,8 @@ class ConfigInstall: explorers = cdist_type.explorers if len(explorers) > 0: - rel_path = os.path.join(type.explorer_path(), explorer) + rel_path = cdist_type.explorer_path src = os.path.join(self.context.type_base_path, rel_path) dst = os.path.join(self.context.remote_type_path, rel_path) + self.context.transfer_path(src, dst) - # Ensure that the path exists - self.remote_mkdir(dst) - self.transfer_path(src, dst)