summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-20 13:56:23 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-20 13:56:23 +0100
commit6d3247b5c02c39a66666a5833106dbc23044e436 (patch)
treeead0084a4acace4198aafecacb58cb76c9fd7c26
parent97b4f8d66bef2328fa53f9e508eb38f8b8d49632 (diff)
downloadceph-6d3247b5c02c39a66666a5833106dbc23044e436.tar.gz
ceph-disk: there is no os.path.lstat use os.lstat
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rwxr-xr-xsrc/ceph-disk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-disk b/src/ceph-disk
index f4137007550..f7a478f9efd 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)