forked from ungleich-public/cdist
use remote paths when executing on remote side
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
773d325afa
commit
1f44617133
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue