From 073717e07e68769a5878dd20cbe81eedbcd3e8b9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 17:07:10 +0200 Subject: [PATCH] some more relative to absolute path changes Signed-off-by: Nico Schottelius --- lib/cdist/config_install.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index c4c1af10..e6172a8c 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -163,10 +163,12 @@ class ConfigInstall: cdist.exec.run_or_fail([code_local]) # code remote - local_remote_code = cdist_object.code_remote_path - remote_remote_code = cdist_object.remote_code_remote_path + local_remote_code = os.path.join(self.context.object_base_path, + cdist_object.code_remote_path) + remote_remote_code = os.path.join(self.context.remote_object_path, + cdist_object.code_remote_path) if os.path.isfile(local_remote_code): - self.context.transfer_file(local_remote_code, remote_remote_code) + self.context.transfer_path(local_remote_code, remote_remote_code) cdist.exec.run_or_fail([remote_remote_code], remote_prefix=True) cdist_object.ran = True