From: Alfredo Deza Date: Wed, 12 Feb 2014 21:43:59 +0000 (-0500) Subject: add support for absence of PATH X-Git-Tag: v0.67.6~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5e12f94efc07f0ff174c0f19494ee2e06d88dfa;p=ceph.git add support for absence of PATH 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 --- diff --git a/src/ceph-disk b/src/ceph-disk index 63b42de7621..5a03639a640 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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)