Fix type-show command with name

This Patch will fix the type-show command
with name.

Change-Id: I86976221995c2ed3ce43041c0f7bfd8cd13e4d0d
Closes-Bug: #1782672
This commit is contained in:
deepak_mourya 2018-08-03 12:41:06 +05:30 committed by Deepak Mourya
parent 649030eff9
commit 6d4e4a80c3
2 changed files with 5 additions and 2 deletions

View File

@ -3818,8 +3818,7 @@ def do_type_list(cs, args):
help='Name or ID of the share type.')
def do_type_show(cs, args):
"""Show share type details."""
share_type = cs.share_types.show(args.share_type)
share_type = _find_share_type(cs, args.share_type)
default = None
if (share_type and not hasattr(share_type, 'is_default')):
default = cs.share_types.get()

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fixed bug 1782672. Name can now be used in type-show command.