File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,19 @@ def init(inconfig, inlog):
49
49
def healthcheck ():
50
50
"""Probes the storage and returns a status message. For cs3 storage, we execute a call to ListAuthProviders"""
51
51
try :
52
- Auth (client ).ListAuthProviders ()
53
- log .debug ('msg="Executed ListAuthProviders as health check" endpoint="%s"' % (ctx [ "revagateway " ]))
52
+ Auth (client ).list_auth_providers ()
53
+ log .debug ('msg="Executed ListAuthProviders as health check" endpoint="%s"' % (config [ "cs3client" ][ "host " ]))
54
54
return "OK"
55
55
except ConnectionError as e :
56
56
log .error (
57
- 'msg="Health check: failed to call ListAuthProviders" endpoint="%s" error="%s"' % (ctx [ "revagateway " ], e )
57
+ 'msg="Health check: connection error when calling ListAuthProviders" endpoint="%s" error="%s"' % (config [ "cs3client" ][ "host " ], e )
58
58
)
59
- return str (e )
59
+ return "FAIL"
60
+ except Exception as e :
61
+ log .error (
62
+ 'msg="Health check: failed to call ListAuthProviders" endpoint="%s" error="%s"' % (config ["cs3client" ]["host" ], e )
63
+ )
64
+ return "FAIL"
60
65
61
66
62
67
def getuseridfromcreds (token , wopiuser ):
You can’t perform that action at this time.
0 commit comments