]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: remove twice defined identical function unmount
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:05:23 +0000 (22:05 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:05:23 +0000 (22:05 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/ceph-disk

index 66fedca7b33a51a0fcae6c5288f2551e95ffda04..dcd4386d4805c22bf5b0eeeceae73c8a14a8060f 100755 (executable)
@@ -517,7 +517,7 @@ def unmount(
         log.debug('Unmounting %s', path)
         subprocess.check_call(
             args=[
-                'umount',
+                '/bin/umount',
                 '--',
                 path,
                 ],
@@ -1210,20 +1210,6 @@ def detect_fstype(
     return fstype
 
 
-def unmount(
-    path,
-    ):
-    try:
-        subprocess.check_call(
-            args=[
-                '/bin/umount',
-                '--',
-                path,
-                ],
-            )
-    except subprocess.CalledProcessError as e:
-        raise UnmountError(e)
-
 def mount_activate(
     dev,
     activate_key_template,