From c5e12f94efc07f0ff174c0f19494ee2e06d88dfa Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 12 Feb 2014 16:43:59 -0500 Subject: [PATCH] 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 --- src/ceph-disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk b/src/ceph-disk index 63b42de76214e..5a03639a64084 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) -- 2.39.5