From 49f850ef9d096b374fdac81fa25ea8efb9c7bc0e Mon Sep 17 00:00:00 2001 From: Danyal-Faheem Date: Thu, 16 Jan 2025 22:13:50 +0500 Subject: [PATCH] fix: reformat files --- tutor/commands/jobs.py | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/tutor/commands/jobs.py b/tutor/commands/jobs.py index 70bf78d9be..2fdc0e2f25 100644 --- a/tutor/commands/jobs.py +++ b/tutor/commands/jobs.py @@ -442,17 +442,22 @@ def update_mysql_authentication_plugin( query = f"ALTER USER IF EXISTS '{user}'@'{host}' IDENTIFIED with caching_sha2_password BY '{password}';" - yield ("lms", shlex.join([ - "mysql", - "--user={{ MYSQL_ROOT_USERNAME }}", - "--password={{ MYSQL_ROOT_PASSWORD }}", - "--host={{ MYSQL_HOST }}", - "--port={{ MYSQL_PORT }}", - "--database={{ OPENEDX_MYSQL_DATABASE }}", - "--show-warnings", - "-e", - query, - ])) + yield ( + "lms", + shlex.join( + [ + "mysql", + "--user={{ MYSQL_ROOT_USERNAME }}", + "--password={{ MYSQL_ROOT_PASSWORD }}", + "--host={{ MYSQL_HOST }}", + "--port={{ MYSQL_PORT }}", + "--database={{ OPENEDX_MYSQL_DATABASE }}", + "--show-warnings", + "-e", + query, + ] + ), + ) def add_job_commands(do_command_group: click.Group) -> None: