mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
ceph-disk: fix adjust_symlink() replace 'journal' with 'target'
Replace 'journal' variable with 'target' since journal doesn't exist in this function. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
a27cb85b21
commit
3575feb7d2
@ -749,7 +749,7 @@ def adjust_symlink(target, path):
|
||||
os.unlink(path)
|
||||
elif stat.S_ISLNK(mode):
|
||||
old = os.readlink(path)
|
||||
if old != journal:
|
||||
if old != target:
|
||||
log.debug('Removing old symlink %s -> %s', path, old)
|
||||
os.unlink(path)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user