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 <junfeng.li@windriver.com>
This commit is contained in:
junfeng-li 2024-03-04 21:01:29 +00:00 committed by Junfeng Li
parent 95b6310ac1
commit fc8b75c6f9
1 changed files with 1 additions and 1 deletions

View File

@ -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