use remote paths when executing on remote side

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-13 17:03:05 +02:00
parent 773d325afa
commit 1f44617133
1 changed files with 1 additions and 1 deletions

View File

@ -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):