Skip to content

Commit 51ecb5f

Browse files
committed
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>
1 parent ffa37ba commit 51ecb5f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

openstackclient/volume/v2/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def take_action(self, parsed_args):
126126
volume_client = self.app.client_manager.sdk_connection.volume
127127

128128
service = volume_client.find_service(
129-
host=parsed_args.host, service=parsed_args.service
129+
parsed_args.service, ignore_missing=False, host=parsed_args.host
130130
)
131131

132132
if parsed_args.enable:

openstackclient/volume/v3/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def take_action(self, parsed_args):
133133
volume_client = self.app.client_manager.sdk_connection.volume
134134

135135
service = volume_client.find_service(
136-
host=parsed_args.host, service=parsed_args.service
136+
parsed_args.service, ignore_missing=False, host=parsed_args.host
137137
)
138138

139139
if parsed_args.enable:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
The 'volume service set' command could not work due to a bad API call.
5+
[Bug `2116969 <https://bugs.launchpad.net/bugs/2116969>`_]

0 commit comments

Comments
 (0)