ceph-daemon: fix pathify (fix shell --config/--keyring)

The relative path works on one of my machines but not my laptop; the
full CWD works everywhere.  This is presumably better anyway!

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-10-24 21:25:59 -05:00
parent d23cf0113d
commit 75016caba5

View File

@ -147,8 +147,8 @@ def call_throws(command, **kwargs):
##################################
def pathify(p):
if '/' not in p:
return './' + p
if not p.startswith('/'):
return os.path.join(os.getcwd(), p)
return p
def get_hostname():