Upgrade KUKSA.val components to 0.4.0 releases
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-dbc-feeder / 0003-dbc2val-fix-token-file-configuration-option.patch
1 From dc20da27a73141b04cc6b0ce5d74e547d6fc7256 Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Mon, 8 May 2023 14:58:06 -0400
4 Subject: [PATCH] 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 ---
15  dbc2val/dbcfeederlib/serverclientwrapper.py | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/dbc2val/dbcfeederlib/serverclientwrapper.py b/dbc2val/dbcfeederlib/serverclientwrapper.py
19 index 1219a76..63bc12e 100644
20 --- a/dbc2val/dbcfeederlib/serverclientwrapper.py
21 +++ b/dbc2val/dbcfeederlib/serverclientwrapper.py
22 @@ -59,7 +59,7 @@ class ServerClientWrapper(clientwrapper.ClientWrapper):
23          self._client_config["insecure"] = not self._tls
24          # Do not set token if it is empty to allow default client lib info to be used
25          if self._token_path != "":
26 -            self._client_config["token"] = self._token_path
27 +            self._client_config["token_or_tokenfile"] = self._token_path
28  
29          if self._root_ca_path:
30              self._client_config['cacertificate'] = self._root_ca_path