From 94e5c1bf8a8fc3f5bda712f4d3041a63af38dea6 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 3 Dec 2019 01:47:33 +0100 Subject: [PATCH] bug: Still referring to old module --- restic_volume_backup/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/restic_volume_backup/commands.py b/restic_volume_backup/commands.py index 74af642..f9f575e 100644 --- a/restic_volume_backup/commands.py +++ b/restic_volume_backup/commands.py @@ -11,7 +11,7 @@ def test(): def ping_mysql(host, port, username, password) -> int: """Check if the database is up and can be reached""" - return commands.run([ + return run([ 'mysqladmin', 'ping', '--host', @@ -26,7 +26,7 @@ def ping_mysql(host, port, username, password) -> int: def ping_mariadb(host, port, username, password) -> int: """Check if the database is up and can be reached""" - return commands.run([ + return run([ 'mysqladmin', 'ping', '--host', @@ -40,7 +40,7 @@ def ping_mariadb(host, port, username, password) -> int: def ping_postgres(self) -> int: - pass + return -1 def run(cmd: List[str]) -> int: