From 64e3dd7e62cddb6364a95a8d47f42b8a6ee1ef4f Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 7 Apr 2023 20:43:46 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/caps_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/caps_helper.py b/qa/tasks/cephfs/caps_helper.py index aad8f83ca12..55c66ea809d 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):