From 6d4e4a80c3c62d22e771ed23bba18ada9cb76023 Mon Sep 17 00:00:00 2001 From: deepak_mourya Date: Fri, 3 Aug 2018 12:41:06 +0530 Subject: [PATCH] Fix type-show command with name This Patch will fix the type-show command with name. Change-Id: I86976221995c2ed3ce43041c0f7bfd8cd13e4d0d Closes-Bug: #1782672 --- manilaclient/v2/shell.py | 3 +-- releasenotes/notes/bug_1782672-1954059b373f03de.yaml | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/bug_1782672-1954059b373f03de.yaml diff --git a/manilaclient/v2/shell.py b/manilaclient/v2/shell.py index f1fecae4a..ebf138fc3 100644 --- a/manilaclient/v2/shell.py +++ b/manilaclient/v2/shell.py @@ -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() diff --git a/releasenotes/notes/bug_1782672-1954059b373f03de.yaml b/releasenotes/notes/bug_1782672-1954059b373f03de.yaml new file mode 100644 index 000000000..5322cef70 --- /dev/null +++ b/releasenotes/notes/bug_1782672-1954059b373f03de.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fixed bug 1782672. Name can now be used in type-show command.