From: Rishabh Dave Date: Fri, 7 Apr 2023 15:13:46 +0000 (+0530) Subject: qa/cephfs/caps_helper: fix a bug in methods that generate cap string X-Git-Tag: v19.0.0~1354^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64e3dd7e62cddb6364a95a8d47f42b8a6ee1ef4f;p=ceph.git qa/cephfs/caps_helper: fix a bug in methods that generate cap string The tuple was not meant to be passed as a whole but its individual members are to be passed as a list of positional arguments. Introduced-by: 87025d15858aa88b22afa9702511ccc7120f8b0b Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/caps_helper.py b/qa/tasks/cephfs/caps_helper.py index aad8f83ca125..55c66ea809de 100644 --- a/qa/tasks/cephfs/caps_helper.py +++ b/qa/tasks/cephfs/caps_helper.py @@ -26,7 +26,7 @@ def gen_mon_cap_str(caps): return mon_cap if len(caps) == 1: - return _gen_mon_cap_str(caps[0]) + return _gen_mon_cap_str(*caps[0]) mon_cap = '' for i, c in enumerate(caps): @@ -50,7 +50,7 @@ def gen_osd_cap_str(caps): return osd_cap if len(caps) == 1: - return _gen_osd_cap_str(caps[0]) + return _gen_osd_cap_str(*caps[0]) osd_cap = '' for i, c in enumerate(caps): @@ -78,7 +78,7 @@ def gen_mds_cap_str(caps): return mds_cap if len(caps) == 1: - return _gen_mds_cap_str(caps[0]) + return _gen_mds_cap_str(*caps[0]) mds_cap = '' for i, c in enumerate(caps):