From 2b36da6401b2dcadd45f8002a16ab987e7011e44 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 1 Feb 2024 18:46:41 +0530 Subject: [PATCH] qa/cephfs: declare f-string to get values to substitute variable names Fixes: https://tracker.ceph.com/issues/64289 Signed-off-by: Rishabh Dave (cherry picked from commit 8f50048dd148aca0f06d88614cf990a884675690) --- qa/tasks/cephfs/caps_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/caps_helper.py b/qa/tasks/cephfs/caps_helper.py index facde0a9fae..f1a2abd674c 100644 --- a/qa/tasks/cephfs/caps_helper.py +++ b/qa/tasks/cephfs/caps_helper.py @@ -168,10 +168,10 @@ class MonCapTester: fsnames = get_fsnames_from_moncap(moncap) if fsnames == []: log.info('no FS name is mentioned in moncap, client has ' - 'permission to list all files. moncap -\n{moncap}') + f'permission to list all files. moncap -\n{moncap}') return - log.info('FS names are mentioned in moncap. moncap -\n{moncap}') + log.info(f'FS names are mentioned in moncap. moncap -\n{moncap}') log.info('testing for presence of these FS names in output of ' '"fs ls" command run by client.') for fsname in fsnames: -- 2.39.5