From 79234148aa7eaf249ad6b24eb06f255acb8f3bfa Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Fri, 7 Oct 2011 15:39:29 +0200
Subject: [PATCH] transfer_object_parameter: new src/dst

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 lib/cdist/config_install.py | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py
index 0b05f8a9..9c1f3b9d 100644
--- a/lib/cdist/config_install.py
+++ b/lib/cdist/config_install.py
@@ -284,12 +284,19 @@ class ConfigInstall:
     # FIXME Move into configinstall
     def transfer_object_parameter(self, cdist_object):
         """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
-        self.remote_mkdir(self.remote_object_parameter_path(cdist_object))
+        # FIXME: needed?
+        self.remote_mkdir(remote_path)
 
         # Synchronise parameter dir afterwards
-        self.transfer_path(self.object_parameter_path(cdist_object), 
-                                self.remote_object_parameter_path(cdist_object))
+        self.transfer_path(local_path, remote_path)
 
 
 ####FIXED ######################################################################