Fixes an issue that prevented ensure shares to be run

A typo in the URL for ensure shares was created and the API
endpoint did not match as a result. Fixed the issue by replacing
'_' by '-' to match the endpoint correctly.

Closes-bug: #2109376
Change-Id: I025d0f853bced49a2d484dc75db809b3d7edb498
Signed-off-by: Carlos da Silva <ces.eduardo98@gmail.com>
(cherry picked from commit 43ee9f0e59)
(cherry picked from commit b44aae26b8)
This commit is contained in:
Carlos da Silva
2025-08-29 17:26:03 -03:00
committed by Goutham Pacha Ravi
parent 2e221d32b6
commit 4a1177ffb1
2 changed files with 6 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ class ServiceManager(base.Manager):
@api_versions.wraps("2.86")
def ensure_shares(self, host): # noqa
resource_path = f'{RESOURCE_PATH}/ensure_shares'
resource_path = f'{RESOURCE_PATH}/ensure-shares'
body = {"host": host}
return self.api.client.post(resource_path, body=body)

View File

@@ -0,0 +1,5 @@
---
fixes:
- |
Fixed an issue while running ensure shares and getting a not found
response. The command should now work properly.