Update paths for kuksa-client 0.4.2 89/29489/1
authorScott Murray <scott.murray@konsulko.com>
Wed, 29 Nov 2023 00:03:09 +0000 (19:03 -0500)
committerScott Murray <scott.murray@konsulko.com>
Wed, 29 Nov 2023 00:06:53 +0000 (19:06 -0500)
Update paths into the kuksa-client module directories to work with
the new locations after the switch to the split out module repository,
i.e. built with kuksa-python-sdk instead of kuksa.val.

Bug-AGL: SPEC-4996

Change-Id: If7ef3785f8a245b1c31e721b61687db728331103
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
extras/config.py

index f8e5ccb..4959b40 100644 (file)
@@ -34,19 +34,18 @@ CONFIG_PATHS = check_paths(
 
 CA_PATHS = check_paths(
     "/etc/kuksa-val/CA.pem",
-    f"/usr/lib/{python_version}/site-packages/kuksa_certificates/CA.pem",
+    f"/usr/lib/{python_version}/site-packages/kuksa_client/kuksa_server_certificates/CA.pem",
     os.path.abspath(os.path.join(os.path.dirname(
         __file__), "../assets/cert/CA.pem"))
 )
 
 WS_TOKEN_PATHS = check_paths(
-    f"/usr/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token",
+    f"/usr/lib/{python_version}/site-packages/kuksa_client/kuksa_server_certificates/jwt/super-admin.json.token",
     os.path.join(os.path.expanduser(
-        "~"), f".local/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token")
+        "~"), f".local/lib/{python_version}/site-packages/kuksa_client/kuksa_server_certificates/jwt/super-admin.json.token")
 )
 
 GRPC_TOKEN_PATHS = check_paths(
-    f"/usr/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token",
     os.path.abspath(os.path.join(os.path.dirname(__file__),
                     "../assets/token/grpc/actuate-provide-all.token"))
 )