forked from ungleich-public/cdist
some more relative to absolute path changes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
b5c01f7354
commit
073717e07e
1 changed files with 5 additions and 3 deletions
|
@ -163,10 +163,12 @@ class ConfigInstall:
|
||||||
cdist.exec.run_or_fail([code_local])
|
cdist.exec.run_or_fail([code_local])
|
||||||
|
|
||||||
# code remote
|
# code remote
|
||||||
local_remote_code = cdist_object.code_remote_path
|
local_remote_code = os.path.join(self.context.object_base_path,
|
||||||
remote_remote_code = cdist_object.remote_code_remote_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):
|
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.exec.run_or_fail([remote_remote_code], remote_prefix=True)
|
||||||
|
|
||||||
cdist_object.ran = True
|
cdist_object.ran = True
|
||||||
|
|
Loading…
Reference in a new issue