some more relative to absolute path changes

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 17:07:10 +02:00
parent b5c01f7354
commit 073717e07e

View file

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