diff --git a/manila/share/share_types.py b/manila/share/share_types.py index 0aa818cd71..710af6b9af 100644 --- a/manila/share/share_types.py +++ b/manila/share/share_types.py @@ -146,8 +146,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): diff --git a/releasenotes/notes/bug-1705533-manage-api-error-message-fix-967b0d44c09b914a.yaml b/releasenotes/notes/bug-1705533-manage-api-error-message-fix-967b0d44c09b914a.yaml new file mode 100644 index 0000000000..af9bf66db4 --- /dev/null +++ b/releasenotes/notes/bug-1705533-manage-api-error-message-fix-967b0d44c09b914a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Error message changed for manage API. +