summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/kuksa-val/kuksa-dbc-feeder/0003-dbc2val-fix-token-file-configuration-option.patch
blob: aae8b3dc051769c1d556d0067c2aaa346e7aa33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From dc20da27a73141b04cc6b0ce5d74e547d6fc7256 Mon Sep 17 00:00:00 2001
From: Scott Murray <scott.murray@konsulko.com>
Date: Mon, 8 May 2023 14:58:06 -0400
Subject: [PATCH] dbc2val: fix token file configuration option

The client library changed the token option name to
'token_or_tokenfile', update things to match so that token
location can be configured again for dbcfeeder.py.

Upstream-Status: pending

Signed-off-by: Scott Murray <scott.murray@konsulko.com>

---
 dbc2val/dbcfeederlib/serverclientwrapper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dbc2val/dbcfeederlib/serverclientwrapper.py b/dbc2val/dbcfeederlib/serverclientwrapper.py
index 1219a76..63bc12e 100644
--- a/dbc2val/dbcfeederlib/serverclientwrapper.py
+++ b/dbc2val/dbcfeederlib/serverclientwrapper.py
@@ -59,7 +59,7 @@ class ServerClientWrapper(clientwrapper.ClientWrapper):
         self._client_config["insecure"] = not self._tls
         # Do not set token if it is empty to allow default client lib info to be used
         if self._token_path != "":
-            self._client_config["token"] = self._token_path
+            self._client_config["token_or_tokenfile"] = self._token_path
 
         if self._root_ca_path:
             self._client_config['cacertificate'] = self._root_ca_path