mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
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:
parent
d23cf0113d
commit
75016caba5
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user