From d52e0c4547ba4528b9233f9035fad5a53ef5d863 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 21 Mar 2023 15:34:13 -0700 Subject: [PATCH] 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 --- daemon/core/api/grpc/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/core/api/grpc/server.py b/daemon/core/api/grpc/server.py index 47615b29..842400ca 100644 --- a/daemon/core/api/grpc/server.py +++ b/daemon/core/api/grpc/server.py @@ -282,7 +282,8 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer): # session options 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) # add servers