bug: pass password with fstring
This commit is contained in:
parent
95fb69d364
commit
62075c2b6d
|
@ -62,7 +62,7 @@ def backup_mysql_database(repository, host, port, user, password, filename, data
|
||||||
pass
|
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"""
|
"""Check if the database is up and can be reached"""
|
||||||
return run_command([
|
return run_command([
|
||||||
'mysqladmin',
|
'mysqladmin',
|
||||||
|
@ -71,10 +71,9 @@ def mysql_ping(host, port, username, password):
|
||||||
host,
|
host,
|
||||||
'--port',
|
'--port',
|
||||||
port,
|
port,
|
||||||
'-user',
|
'--user',
|
||||||
username,
|
username,
|
||||||
'--password',
|
f'--password={password}',
|
||||||
password,
|
|
||||||
])
|
])
|
||||||
|
|
||||||
def snapshots(repository):
|
def snapshots(repository):
|
||||||
|
|
Loading…
Reference in New Issue