]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
add support for absence of PATH 1232/head
authorAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:43:59 +0000 (16:43 -0500)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:43:59 +0000 (16:43 -0500)
Note that this commit is actually bisecting the changes from
Loic Dachary that touch ceph-disk only (ad515bf). As that changeset
also touches other files it causes conflicts that are not resolvable
for backporting it to dumpling.

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
src/ceph-disk

index 63b42de76214eb946e599cbe5e35f14d689e0cce..5a03639a6408439616114e4a9a65bbbc8b959a98 100755 (executable)
@@ -2547,7 +2547,7 @@ def main():
         )
 
     if args.prepend_to_path != '':
-        path = os.environ.get('PATH', '')
+        path = os.environ.get('PATH', os.defpath)
         os.environ['PATH'] = args.prepend_to_path + ":" + path
 
     setup_statedir(args.statedir)