fix: use correct parsed_args attribute in volume group type show · openstack/python-openstackclient@ca50e09 · GitHub
Skip to content

Commit ca50e09

Browse files
author
hong-p
committed
fix: use correct parsed_args attribute in volume group type show
The ShowVolumeGroupType.take_action() was referencing parsed_args.group instead of parsed_args.group_type, causing an AttributeError on every invocation. Closes-Bug: #2150856 Change-Id: I6924040580af2bc2f30e2bc5f03a366cbb9fe6ef Signed-off-by: hongp <inyong.hong@samsung.com> (cherry picked from commit 05ffb11)
1 parent 896a167 commit ca50e09

3 files changed

Lines changed: 73 additions & 1 deletion

File tree

openstackclient/tests/unit/volume/v3/test_volume_group_type.py

Lines changed: 65 additions & 0 deletions

openstackclient/volume/v3/volume_group_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def take_action(self, parsed_args):
399399

400400
group_type = utils.find_resource(
401401
volume_client.group_types,
402-
parsed_args.group,
402+
parsed_args.group_type,
403403
)
404404

405405
return _format_group_type(group_type)
Lines changed: 7 additions & 0 deletions

0 commit comments

Comments
 (0)