From: Kefu Chai Date: Tue, 3 Mar 2026 06:54:36 +0000 (+0800) Subject: qa/tasks/keycloak: drop unused local variable X-Git-Tag: v21.0.0~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f551c110920412e498644befcc09b5bb14548c15;p=ceph.git 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 --- diff --git a/qa/tasks/keycloak.py b/qa/tasks/keycloak.py index 8b1fb4e8a2cc..356b0782e6b3 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()