From f3af39896c307f384e0fb1476eb210a653da57b2 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Mon, 11 May 2020 17:41:10 +0200 Subject: [PATCH] Refactor RpcClient instantiation parameters --- seafile-client/seafile-healthcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seafile-client/seafile-healthcheck.py b/seafile-client/seafile-healthcheck.py index 7029df0..cfb80be 100755 --- a/seafile-client/seafile-healthcheck.py +++ b/seafile-client/seafile-healthcheck.py @@ -38,7 +38,7 @@ if __name__ == "__main__": seafile_socket = os.path.join(args.confdir, "seafile.sock") if not os.path.exists(seafile_socket): raise Exception("Could not find a Seafile socket at {}".format(args.confdir)) - seafile_rpc = seafile.RpcClient(os.path.join(args.confdir, "seafile.sock")) + seafile_rpc = seafile.RpcClient(seafile_socket) # Fetch the sync task of the repository. repository_sync_task = seafile_rpc.get_repo_sync_task(args.repository_id)