grpc: adjustment when starting a session to not update session options for empty values, since they may override values set in /etc/core/core.conf
This commit is contained in:
parent
59f814eac0
commit
d52e0c4547
1 changed files with 2 additions and 1 deletions
|
@ -282,7 +282,8 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
||||||
|
|
||||||
# session options
|
# session options
|
||||||
for option in request.session.options.values():
|
for option in request.session.options.values():
|
||||||
session.options.set(option.name, option.value)
|
if option.value:
|
||||||
|
session.options.set(option.name, option.value)
|
||||||
session.metadata = dict(request.session.metadata)
|
session.metadata = dict(request.session.metadata)
|
||||||
|
|
||||||
# add servers
|
# add servers
|
||||||
|
|
Loading…
Reference in a new issue