forked from ungleich-public/cdist
transfer_object_parameter: new src/dst
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
32f1e2efb6
commit
79234148aa
1 changed files with 10 additions and 3 deletions
|
@ -284,12 +284,19 @@ class ConfigInstall:
|
||||||
# FIXME Move into configinstall
|
# FIXME Move into configinstall
|
||||||
def transfer_object_parameter(self, cdist_object):
|
def transfer_object_parameter(self, cdist_object):
|
||||||
"""Transfer the object parameter to the remote destination"""
|
"""Transfer the object parameter to the remote destination"""
|
||||||
|
local_path =
|
||||||
|
os.path.join(self.context.object_base_path,
|
||||||
|
cdist_object.parameter_path)
|
||||||
|
remote_path =
|
||||||
|
os.path.join(self.context.remote_object_path,
|
||||||
|
cdist_object.parameter_path)
|
||||||
|
|
||||||
# Create base path before using mkdir -p
|
# Create base path before using mkdir -p
|
||||||
self.remote_mkdir(self.remote_object_parameter_path(cdist_object))
|
# FIXME: needed?
|
||||||
|
self.remote_mkdir(remote_path)
|
||||||
|
|
||||||
# Synchronise parameter dir afterwards
|
# Synchronise parameter dir afterwards
|
||||||
self.transfer_path(self.object_parameter_path(cdist_object),
|
self.transfer_path(local_path, remote_path)
|
||||||
self.remote_object_parameter_path(cdist_object))
|
|
||||||
|
|
||||||
|
|
||||||
####FIXED ######################################################################
|
####FIXED ######################################################################
|
||||||
|
|
Loading…
Reference in a new issue