fix typeexplorer transfer

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 16:27:15 +02:00
parent 2c9beb9506
commit fd2fa23564

View file

@ -291,7 +291,7 @@ class ConfigInstall:
def transfer_type_explorers(self, cdist_type): def transfer_type_explorers(self, cdist_type):
"""Transfer explorers of a type, but only once""" """Transfer explorers of a type, but only once"""
if cdist_type.transferred_explorers: 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 return
else: else:
# Do not retransfer # Do not retransfer
@ -300,10 +300,8 @@ class ConfigInstall:
explorers = cdist_type.explorers explorers = cdist_type.explorers
if len(explorers) > 0: 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) src = os.path.join(self.context.type_base_path, rel_path)
dst = os.path.join(self.context.remote_type_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)