]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/cephfs/kernel_mount.py
import 15.2.2 octopus source
[ceph.git] / ceph / qa / tasks / cephfs / kernel_mount.py
index 86a06006df752e084ccee6749e2976c7c48b8fac..8e4eeb66a96a30dd237b391874aa32e74ebb411d 100644 (file)
@@ -74,6 +74,9 @@ class KernelMount(CephFSMount):
         self.mounted = True
 
     def umount(self, force=False):
+        if not self.is_mounted():
+            return
+
         log.debug('Unmounting client client.{id}...'.format(id=self.client_id))
 
         cmd=['sudo', 'umount', self.mountpoint]