Merge "Fix migrate api giving incorrect exception message"

This commit is contained in:
Jenkins 2017-04-11 06:12:36 +00:00 committed by Gerrit Code Review
commit 2a4f3ab447

View File

@ -1386,7 +1386,7 @@ class API(base.Base):
cluster_name=svc_cluster,
backend_match_level='pool')
except exception.ServiceNotFound:
msg = _('No available service named %s') % cluster_name or host
msg = _("No available service named '%s'") % (cluster_name or host)
LOG.error(msg)
raise exception.InvalidHost(reason=msg)
# Even if we were requested to do a migration to a host, if the host is