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:
@@ -126,7 +126,7 @@ class SetService(command.Command):
|
||||
volume_client = self.app.client_manager.sdk_connection.volume
|
||||
|
||||
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:
|
||||
|
@@ -133,7 +133,7 @@ class SetService(command.Command):
|
||||
volume_client = self.app.client_manager.sdk_connection.volume
|
||||
|
||||
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:
|
||||
|
@@ -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>`_]
|
Reference in New Issue
Block a user