diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-20 14:02:28 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-04-26 13:40:05 -0700 |
commit | 1ffc89af1954643426708987a09291463bd7525b (patch) | |
tree | 7f8be056626ce02801d863dbf94fb5de36024cd7 | |
parent | 690ab6b3e284e9beed74b3e77612e804464e467d (diff) | |
download | ceph-1ffc89af1954643426708987a09291463bd7525b.tar.gz |
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>
(cherry picked from commit 3575feb7d2e5f4e35c5df193a1f8c9f08f88fcf4)
-rwxr-xr-x | src/ceph-disk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-disk b/src/ceph-disk index cc473fd7272..7de946e2985 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: |