From 1f44617133b5af4e3d1c1d49793ad67aa9aefe8c Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 13 Oct 2011 17:03:05 +0200 Subject: [PATCH] use remote paths when executing on remote side Signed-off-by: Steven Armstrong --- lib/cdist/core/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/core/code.py b/lib/cdist/core/code.py index 2345acc8..af756263 100644 --- a/lib/cdist/core/code.py +++ b/lib/cdist/core/code.py @@ -123,7 +123,7 @@ class Code(object): def _run_code(self, cdist_object, which): which_exec = getattr(self, which) - script = os.path.join(self.local.object_path, getattr(cdist_object, 'code_%s_path' % which)) + script = os.path.join(which_exec.object_path, getattr(cdist_object, 'code_%s_path' % which)) return which_exec.run_script(script) def run_code_local(self, cdist_object):