]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
set an appropriate path for the remote command
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 29 Aug 2013 12:55:14 +0000 (08:55 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 29 Aug 2013 12:55:14 +0000 (08:55 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/util/wrappers.py

index fe41856d1f7f773bc36648761084ef1185685453..7f5e6f260fc151d19dc114c0b105a66751bac633 100644 (file)
@@ -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