diff --git a/cinder/db/sqlalchemy/api.py b/cinder/db/sqlalchemy/api.py index d526befd74e..f7fcfa65e78 100644 --- a/cinder/db/sqlalchemy/api.py +++ b/cinder/db/sqlalchemy/api.py @@ -1859,8 +1859,8 @@ def _attachment_get(context, attachment_id, session=None, read_deleted=False, .first()) if not result: - msg = _("Unable to find attachment with id: %s"), attachment_id - raise exception.VolumeAttachmentNotFound(msg) + raise exception.VolumeAttachmentNotFound(filter='attachment_id = %s' % + attachment_id) return result diff --git a/cinder/exception.py b/cinder/exception.py index e8d9ccfd24f..33bddc3b188 100644 --- a/cinder/exception.py +++ b/cinder/exception.py @@ -339,7 +339,7 @@ class MessageNotFound(NotFound): class VolumeAttachmentNotFound(NotFound): message = _("Volume attachment could not be found with " - "filter: %(filter)s .") + "filter: %(filter)s.") class VolumeMetadataNotFound(NotFound):