Merge "adds share server uuid on migration cancel"

This commit is contained in:
Zuul 2023-03-28 15:02:33 +00:00 committed by Gerrit Code Review
commit 1dc7287a94
1 changed files with 2 additions and 1 deletions

View File

@ -2995,7 +2995,8 @@ class API(base.Base):
"""Attempts to cancel share server migration."""
if share_server['status'] != constants.STATUS_SERVER_MIGRATING:
msg = _("Migration of share server %s cannot be cancelled because "
"the provided share server is not being migrated.")
"the provided share server is not being migrated."
% (share_server['id']))
LOG.error(msg)
raise exception.InvalidShareServer(reason=msg)