Merge "Fix error message in the manage API" into stable/pike

This commit is contained in:
Zuul 2018-02-27 00:23:57 +00:00 committed by Gerrit Code Review
commit dc13b22ec2
2 changed files with 7 additions and 2 deletions

View File

@ -145,8 +145,8 @@ def get_share_type_by_name_or_id(context, share_type=None):
if not share_type:
share_type_ref = get_default_share_type(context)
if not share_type_ref:
msg = _("Default share type not found")
raise exception.ShareTypeNotFound(reason=msg)
msg = _("Default share type not found.")
raise exception.ShareTypeNotFound(message=msg)
return share_type_ref
if uuidutils.is_uuid_like(share_type):

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Error message changed for manage API.