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:
parent
7af5caf83c
commit
1dd6cc3c4d
|
@ -46,7 +46,7 @@ class SoftwareClient(base.DriverBase):
|
||||||
# The usm systemcontroller endpoint ends with a slash but the regionone
|
# The usm systemcontroller endpoint ends with a slash but the regionone
|
||||||
# and the subcloud endpoint don't. The slash is removed to standardize
|
# and the subcloud endpoint don't. The slash is removed to standardize
|
||||||
# with the other endpoints.
|
# with the other endpoints.
|
||||||
self.endpoint = self.endpoint.rstrip('/') + '/software'
|
self.endpoint = self.endpoint.rstrip('/') + '/v1/software'
|
||||||
self.token = session.get_token()
|
self.token = session.get_token()
|
||||||
|
|
||||||
def query(self, state='all', release=None, timeout=REST_DEFAULT_TIMEOUT):
|
def query(self, state='all', release=None, timeout=REST_DEFAULT_TIMEOUT):
|
||||||
|
|
Loading…
Reference in New Issue