fix: incorrect parameters in mysql ping command

This commit is contained in:
Michael Reichenbach 2021-03-09 07:12:45 +01:00 committed by Silthus
parent 3ea36a1d93
commit b0259512cc
1 changed files with 8 additions and 16 deletions

View File

@ -14,14 +14,10 @@ def ping_mysql(host, port, username, password) -> int:
return run([
'mysqladmin',
'ping',
'--host',
host,
'--port',
port,
'--user',
username,
'--password',
password
f"--host={host}",
f"--port={port}",
f"--user={username}",
f"--password={password}"
])
@ -30,14 +26,10 @@ def ping_mariadb(host, port, username, password) -> int:
return run([
'mysqladmin',
'ping',
'--host',
host,
'--port',
port,
'--user',
username,
'--password',
password
f"--host={host}",
f"--port={port}",
f"--user={username}",
f"--password={password}"
])