]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: there is no os.path.lstat use os.lstat
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 20 Mar 2013 12:56:23 +0000 (13:56 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 20 Mar 2013 12:56:23 +0000 (13:56 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/ceph-disk

index f4137007550cbade681a9cd2bbc0e25a6012c092..f7a478f9efd91079102d5c53b611081c0d6ce5f3 100755 (executable)
@@ -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)