From 62075c2b6dbe01b4ff2629e63305fece9b64af05 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Fri, 29 Nov 2019 05:36:46 +0100 Subject: [PATCH] bug: pass password with fstring --- restic_volume_backup/restic.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/restic_volume_backup/restic.py b/restic_volume_backup/restic.py index 1d3f6fa..f2b0517 100644 --- a/restic_volume_backup/restic.py +++ b/restic_volume_backup/restic.py @@ -62,7 +62,7 @@ def backup_mysql_database(repository, host, port, user, password, filename, data pass -def mysql_ping(host, port, username, password): +def ping_mysql(host, port, username, password): """Check if the database is up and can be reached""" return run_command([ 'mysqladmin', @@ -71,10 +71,9 @@ def mysql_ping(host, port, username, password): host, '--port', port, - '-user', + '--user', username, - '--password', - password, + f'--password={password}', ]) def snapshots(repository):