Skip to content

Commit

Permalink
fix config getter to getint
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed May 21, 2024
1 parent efb68b8 commit 94a4c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/cs3iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def init(inconfig, inlog):
ctx['locknotimpl'] = False
ctx['revagateway'] = inconfig.get('cs3', 'revagateway')
ctx['xattrcache'] = {} # this is a map cs3ref -> arbitrary_metadata as returned by Stat()
ctx['grpc_timeout'] = inconfig.get('cs3', "grpctimeout", fallback=10)
ctx['http_timeout'] = inconfig.get('cs3', "httptimeout", fallback=10)
ctx['grpc_timeout'] = inconfig.getint('cs3', "grpctimeout", fallback=10)
ctx['http_timeout'] = inconfig.getint('cs3', "httptimeout", fallback=10)
# prepare the gRPC channel and validate that the revagateway gRPC server is ready
try:
ch = grpc.insecure_channel(ctx['revagateway'])
Expand Down

0 comments on commit 94a4c3d

Please sign in to comment.