From 1dd6cc3c4d12d711466efb8167d881a1cc23569d Mon Sep 17 00:00:00 2001 From: Joseph Vazhappilly Date: Mon, 5 Feb 2024 06:54:36 -0500 Subject: [PATCH] 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 --- distributedcloud/dccommon/drivers/openstack/software_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributedcloud/dccommon/drivers/openstack/software_v1.py b/distributedcloud/dccommon/drivers/openstack/software_v1.py index b3719b3dc..c25b1b59e 100644 --- a/distributedcloud/dccommon/drivers/openstack/software_v1.py +++ b/distributedcloud/dccommon/drivers/openstack/software_v1.py @@ -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):