From: Danny Al-Gaaf Date: Wed, 20 Mar 2013 13:02:28 +0000 (+0100) Subject: ceph-disk: fix adjust_symlink() replace 'journal' with 'target' X-Git-Tag: v0.62~188^2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3575feb7d2e5f4e35c5df193a1f8c9f08f88fcf4;p=ceph.git 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 --- diff --git a/src/ceph-disk b/src/ceph-disk index a121b22e808..6d98fc32ada 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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: