]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Fix flake8 for qa/tasks/cephfs/test_volumes.py 32222/head
authorThomas Bechtold <tbechtold@suse.com>
Fri, 13 Dec 2019 04:54:11 +0000 (05:54 +0100)
committerThomas Bechtold <tbechtold@suse.com>
Fri, 13 Dec 2019 08:24:25 +0000 (09:24 +0100)
Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
qa/tasks/cephfs/test_volumes.py

index 19ea2418c4f2be0e5fe9d1e14e3dca47226374b8..3c387c2d6894ef57c9969c7d14b13916a96c1df2 100644 (file)
@@ -415,7 +415,7 @@ class TestVolumes(CephFSTestCase):
         subvolume = self._generate_random_subvolume_name()
         try:
             self._fs_cmd("subvolume", "rm", self.volname, subvolume, "--force")
-        except CommandFailedError as ce:
+        except CommandFailedError:
             raise RuntimeError("expected the 'fs subvolume rm --force' command to succeed")
 
     def test_subvolume_create_with_auto_cleanup_on_fail(self):
@@ -637,7 +637,7 @@ class TestVolumes(CephFSTestCase):
         group = self._generate_random_group_name()
         try:
             self._fs_cmd("subvolumegroup", "rm", self.volname, group, "--force")
-        except CommandFailedError as ce:
+        except CommandFailedError:
             raise RuntimeError("expected the 'fs subvolumegroup rm --force' command to succeed")
 
     def test_subvolume_group_create_with_auto_cleanup_on_fail(self):
@@ -933,7 +933,7 @@ class TestVolumes(CephFSTestCase):
         # remove snapshot
         try:
             self._fs_cmd("subvolume", "snapshot", "rm", self.volname, subvolume, snapshot, "--force")
-        except CommandFailedError as ce:
+        except CommandFailedError:
             raise RuntimeError("expected the 'fs subvolume snapshot rm --force' command to succeed")
 
     def test_subvolume_snapshot_in_group(self):
@@ -1081,7 +1081,7 @@ class TestVolumes(CephFSTestCase):
         # remove snapshot
         try:
             self._fs_cmd("subvolumegroup", "snapshot", "rm", self.volname, group, snapshot, "--force")
-        except CommandFailedError as ce:
+        except CommandFailedError:
             raise RuntimeError("expected the 'fs subvolumegroup snapshot rm --force' command to succeed")
 
     def test_subvolume_group_snapshot_ls(self):