From fc8b75c6f9fc6f9a0800f2ce3176ea3a5c1d3264 Mon Sep 17 00:00:00 2001 From: junfeng-li Date: Mon, 4 Mar 2024 21:01:29 +0000 Subject: [PATCH] Fix USM endpoint append error This is to fix the USM endpoint URL not appended properly using .join() function. The way .join() was used only append the endpoint resource to a empty string. Test Plan: PASS: Run the host-swact Depends-on: https://review.opendev.org/c/starlingx/update/+/911003 Task: 49660 Story: 2010676 Change-Id: Icf47494843d7ea6c9fcd73e9256d9be352d8f76f Signed-off-by: junfeng-li --- .../sm-api/sm_api/api/controllers/v1/servicenode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-mgmt-api/sm-api/sm_api/api/controllers/v1/servicenode.py b/service-mgmt-api/sm-api/sm_api/api/controllers/v1/servicenode.py index 7825c745..0d0cb237 100755 --- a/service-mgmt-api/sm-api/sm_api/api/controllers/v1/servicenode.py +++ b/service-mgmt-api/sm-api/sm_api/api/controllers/v1/servicenode.py @@ -501,7 +501,7 @@ class ServiceNodeController(rest.RestController): usm_req_headers = {"Content-type": "application/json"} response = rest_api_request(auth_token, "GET", - usm_endpoint.join(("/v1/software/in_sync_controller",)), + usm_endpoint + "/v1/software/in_sync_controller", usm_req_headers, None) return response