]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: minor improvement in caps_helper
authorRishabh Dave <ridave@redhat.com>
Thu, 30 Mar 2023 19:36:13 +0000 (01:06 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 4 Apr 2024 11:39:42 +0000 (17:09 +0530)
Use Python type list instead of tuple since it get's necessary to modify
members of this sequence.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1a7ca489b4b84ae48c831ec63b201c024047b295)

qa/tasks/cephfs/caps_helper.py

index 4e3d4280e40cbbb22a64cfce60761577eb0d60d6..d8a2d8f67c4240335f12a649f85201ca9baf81b5 100644 (file)
@@ -168,7 +168,7 @@ class CapTester(CephFSTestCase):
                         f'cephfs_mntpt = {mount_x.cephfs_mntpt}\n'
                         f'hostfs_mntpt = {mount_x.hostfs_mntpt}')
             mount_x.write_file(filepath, filedata)
-            self.test_set.append((mount_x, filepath, filedata))
+            self.test_set.append([mount_x, filepath, filedata])
             log.info(f'Test file created at "{filepath}" with the following '
                      f'data -\n"{filedata}"')