]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fix adjust_symlink() replace 'journal' with 'target'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 20 Mar 2013 13:02:28 +0000 (14:02 +0100)
committerSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 20:40:05 +0000 (13:40 -0700)
Replace 'journal' variable with 'target' since journal doesn't
exist in this function.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 3575feb7d2e5f4e35c5df193a1f8c9f08f88fcf4)

src/ceph-disk

index cc473fd72722c62b3153fbd7c8789c6fe760f8a8..7de946e29856ed8602c2a6c7da482bdc402ca6a5 100755 (executable)
@@ -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: