volume: fix volume service set call

The command line operation could never work due to the incorrect call of
the openstacksdk API. This is updated to make it work and report errors
back to the user.

Closes-Bug: #2116969
Change-Id: I87cc410853c03b00dd1549d67cb1b9a8145bcfaa
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2025-07-15 13:20:44 -05:00
parent ffa37bab12
commit 51ecb5f984
3 changed files with 7 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ class SetService(command.Command):
volume_client = self.app.client_manager.sdk_connection.volume volume_client = self.app.client_manager.sdk_connection.volume
service = volume_client.find_service( service = volume_client.find_service(
host=parsed_args.host, service=parsed_args.service parsed_args.service, ignore_missing=False, host=parsed_args.host
) )
if parsed_args.enable: if parsed_args.enable:

View File

@@ -133,7 +133,7 @@ class SetService(command.Command):
volume_client = self.app.client_manager.sdk_connection.volume volume_client = self.app.client_manager.sdk_connection.volume
service = volume_client.find_service( service = volume_client.find_service(
host=parsed_args.host, service=parsed_args.service parsed_args.service, ignore_missing=False, host=parsed_args.host
) )
if parsed_args.enable: if parsed_args.enable:

View File

@@ -0,0 +1,5 @@
---
fixes:
- |
The 'volume service set' command could not work due to a bad API call.
[Bug `2116969 <https://bugs.launchpad.net/bugs/2116969>`_]