From f551c110920412e498644befcc09b5bb14548c15 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 3 Mar 2026 14:54:36 +0800 Subject: [PATCH] qa/tasks/keycloak: drop unused local variable Regression introduced by ee710390d277784ddac3d70c9e11e427f46f363d ("rgw/tests: add os-specific java 1.7 install commands to keycloak task"). ``` 283/322 Test #301: run-tox-qa ................................***Failed 92.31 sec ... flake8: install_deps /ceph/qa> python -I -m pip install flake8 flake8: commands[0] /ceph/qa> flake8 --select=F,E9 --exclude=venv,.tox ./tasks/keycloak.py:51:5: F841 local variable 'os_version' is assigned to but never used ``` Remove the unused os_version assignment to fix flake8 F841 in run-tox-qa. Signed-off-by: Kefu Chai --- qa/tasks/keycloak.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qa/tasks/keycloak.py b/qa/tasks/keycloak.py index 8b1fb4e8a2c..356b0782e6b 100644 --- a/qa/tasks/keycloak.py +++ b/qa/tasks/keycloak.py @@ -48,8 +48,6 @@ def install_packages(ctx, config): log.info('Installing packages for Keycloak and Java 1.7...') os_type = teuthology.get_distro(ctx) - os_version = teuthology.get_distro_version(ctx) - for (client, _) in config.items(): (remote,) = ctx.cluster.only(client).remotes.keys() -- 2.47.3