From bd1036dd83fa2ee4807047fb9c2b414ccc9375eb Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 19 Mar 2013 22:05:23 +0100 Subject: [PATCH] ceph-disk: remove twice defined identical function unmount Signed-off-by: Danny Al-Gaaf (cherry picked from commit 4adf088107586be7b356d1e963570cdab232809e) --- src/ceph-disk | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/ceph-disk b/src/ceph-disk index 20f004558a61..90fbe52ae38a 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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, -- 2.47.3