summaryrefslogtreecommitdiff
path: root/cdist/exec/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'cdist/exec/remote.py')
-rw-r--r--cdist/exec/remote.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cdist/exec/remote.py b/cdist/exec/remote.py
index 9e3e279..df8d454 100644
--- a/cdist/exec/remote.py
+++ b/cdist/exec/remote.py
@@ -263,6 +263,7 @@ class Remote(object):
# /bin/csh will execute this script in the right way.
if env:
remote_env = [" export %s=%s;" % item for item in env.items()]
+ remote_env += [" export PATH=/bin:/usr/bin:/sbin:/usr/sbin;"]
string_cmd = ("/bin/sh -c '" + " ".join(remote_env) +
" ".join(command) + "'")
cmd.append(string_cmd)