mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-12-14 17:58:07 +00:00
bug: Still referring to old module
This commit is contained in:
@@ -11,7 +11,7 @@ def test():
|
|||||||
|
|
||||||
def ping_mysql(host, port, username, password) -> int:
|
def ping_mysql(host, port, username, password) -> int:
|
||||||
"""Check if the database is up and can be reached"""
|
"""Check if the database is up and can be reached"""
|
||||||
return commands.run([
|
return run([
|
||||||
'mysqladmin',
|
'mysqladmin',
|
||||||
'ping',
|
'ping',
|
||||||
'--host',
|
'--host',
|
||||||
@@ -26,7 +26,7 @@ def ping_mysql(host, port, username, password) -> int:
|
|||||||
|
|
||||||
def ping_mariadb(host, port, username, password) -> int:
|
def ping_mariadb(host, port, username, password) -> int:
|
||||||
"""Check if the database is up and can be reached"""
|
"""Check if the database is up and can be reached"""
|
||||||
return commands.run([
|
return run([
|
||||||
'mysqladmin',
|
'mysqladmin',
|
||||||
'ping',
|
'ping',
|
||||||
'--host',
|
'--host',
|
||||||
@@ -40,7 +40,7 @@ def ping_mariadb(host, port, username, password) -> int:
|
|||||||
|
|
||||||
|
|
||||||
def ping_postgres(self) -> int:
|
def ping_postgres(self) -> int:
|
||||||
pass
|
return -1
|
||||||
|
|
||||||
|
|
||||||
def run(cmd: List[str]) -> int:
|
def run(cmd: List[str]) -> int:
|
||||||
|
|||||||
Reference in New Issue
Block a user