Do not expose db passwords when pinging

This commit is contained in:
Einar Forselv
2019-12-05 00:38:58 +01:00
parent 9dabf01051
commit b9d5233510
2 changed files with 16 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ def test():
return run_command(['ls', '/volumes'])
def ping_mysql(host, port, username, password) -> int:
def ping_mysql(host, port, username) -> int:
"""Check if the mysql is up and can be reached"""
return run([
'mysqladmin',
@@ -20,11 +20,10 @@ def ping_mysql(host, port, username, password) -> int:
port,
'--user',
username,
f'--password={password}',
])
def ping_mariadb(host, port, username, password) -> int:
def ping_mariadb(host, port, username): #, password) -> int:
"""Check if the mariadb is up and can be reached"""
return run([
'mysqladmin',
@@ -35,7 +34,6 @@ def ping_mariadb(host, port, username, password) -> int:
port,
'--user',
username,
f'--password={password}',
])