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:
Danny Al-Gaaf 2013-03-20 14:02:28 +01:00
parent a27cb85b21
commit 3575feb7d2

View File

@ -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: