Add version to dcmanager software client

The software api is versioned in order to allow for future upgrades.
This implementation add 'v1' version to dcmanger software client
to use the updated 'v1' APIs.

Test Plan:
PASS: Verify software API using dcmanager software client

Depends-On: https://review.opendev.org/c/starlingx/update/+/907197

Story: 2010676
Task: 49478

Change-Id: I434ce282f5623fe3c74eb89fd38ad079f253f955
Signed-off-by: Joseph Vazhappilly <joseph.vazhappillypaily@windriver.com>
This commit is contained in:
Joseph Vazhappilly 2024-02-05 06:54:36 -05:00
parent 7af5caf83c
commit 1dd6cc3c4d
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class SoftwareClient(base.DriverBase):
# The usm systemcontroller endpoint ends with a slash but the regionone
# and the subcloud endpoint don't. The slash is removed to standardize
# with the other endpoints.
self.endpoint = self.endpoint.rstrip('/') + '/software'
self.endpoint = self.endpoint.rstrip('/') + '/v1/software'
self.token = session.get_token()
def query(self, state='all', release=None, timeout=REST_DEFAULT_TIMEOUT):