From: Alfredo Deza Date: Thu, 29 Aug 2013 12:55:14 +0000 (-0400) Subject: set an appropriate path for the remote command X-Git-Tag: v1.2.3~2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ffc87854720fa3ba94ae3d4a299e9030db388f3;p=ceph-deploy.git set an appropriate path for the remote command Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/util/wrappers.py b/ceph_deploy/util/wrappers.py index fe41856..7f5e6f2 100644 --- a/ceph_deploy/util/wrappers.py +++ b/ceph_deploy/util/wrappers.py @@ -25,6 +25,13 @@ def check_call(conn, logger, args, *a, **kw): mangle = kw.pop('mangle_exc', False) # Default to not mangle exceptions stop_on_error = kw.pop('stop_on_error', True) # Halt on remote exceptions logger.info('Running command: %s' % command) + kw.setdefault( + 'env', + { + 'PATH': + '/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin' + } + ) def remote_call(args, *a, **kw): import subprocess