]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: which() uses PATH first
authorLoic Dachary <loic@dachary.org>
Mon, 30 Dec 2013 22:07:27 +0000 (23:07 +0100)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:17:11 +0000 (16:17 -0500)
commitdeefb3a05788b308631812c652e9eccaeb999d7f
treee934f8ace8ef8a7b9dfea586bd5f4e6f54d360c1
parent06bbea187293ac52aefbcf4e98c162bb3286341d
ceph-disk: which() uses PATH first

Instead of relying on a hardcoded set of if paths. Although this has the
potential of changing the location of the binary being used by ceph-disk
on an existing installation, it is currently only used for sgdisk. It
could be disruptive for someone using a modified version of sgdisk but
the odds of this happening are very low.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 2b935bbf60bafb6dd488c0eb30f156fce1b9d197)
src/ceph-disk