summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-20 13:56:23 +0100
committerSage Weil <sage@inktank.com>2013-04-26 13:40:05 -0700
commit329f279cd108c837e434ee3aae6c8ad502ba802f (patch)
treec42a9146fc088b4c04668d4501fa48df347ca0d4
parentffe024b8b5024cdac256bacb9df433b69385cc0a (diff)
downloadceph-329f279cd108c837e434ee3aae6c8ad502ba802f.tar.gz
ceph-disk: there is no os.path.lstat use os.lstat
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> (cherry picked from commit 6d3247b5c02c39a66666a5833106dbc23044e436)
-rwxr-xr-xsrc/ceph-disk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-disk b/src/ceph-disk
index 1a7f4f73cd7..741b8532d85 100755
--- a/src/ceph-disk
+++ b/src/ceph-disk
@@ -743,7 +743,7 @@ def adjust_symlink(target, path):
create = True
if os.path.lexists(path):
try:
- mode = os.path.lstat(canonical).st_mode
+ mode = os.lstat(canonical).st_mode
if stat.S_ISREG(mode):
log.debug('Removing old file %s', canonical)
os.unlink(canonical)