Skip to content

Commit

Permalink
fix: reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyal-Faheem committed Jan 16, 2025
1 parent 216d0fd commit 49f850e
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions tutor/commands/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49f850e

Please sign in to comment.