Add persistent storage grpc API
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-can-provider / 0003-dbc2val-fix-token-file-configuration-option.patch
1 From 0b5822c6a8f8fa489bc7ae67f91284ac150f6518 Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Sat, 15 Jun 2024 13:18:08 -0400
4 Subject: [PATCH 3/4] dbc2val: fix token file configuration option
5
6 The client library changed the token option name to
7 'token_or_tokenfile', update things to match so that token
8 location can be configured again for dbcfeeder.py.
9
10 Upstream-Status: pending
11
12 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
13 ---
14  dbcfeederlib/serverclientwrapper.py | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/dbcfeederlib/serverclientwrapper.py b/dbcfeederlib/serverclientwrapper.py
18 index 498e1b6..fa43d28 100644
19 --- a/dbcfeederlib/serverclientwrapper.py
20 +++ b/dbcfeederlib/serverclientwrapper.py
21 @@ -56,7 +56,7 @@ class ServerClientWrapper(clientwrapper.ClientWrapper):
22          self._client_config["insecure"] = not self._tls
23          # Do not set token if it is empty to allow default client lib info to be used
24          if self._token_path != "":
25 -            self._client_config["token"] = self._token_path
26 +            self._client_config["token_or_tokenfile"] = self._token_path
27  
28          if self._root_ca_path:
29              self._client_config['cacertificate'] = self._root_ca_path
30 -- 
31 2.44.0
32