From 791803de470d6fc0bed81fc07a07220c60214b5f Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Tue, 6 Feb 2018 12:13:11 -0800 Subject: [PATCH] TrivialFix: Add a space between messages The 345 DB migration shows error messages by combining base_msg and each specific message, but it was not readable due to lack of a space. This patch fixes it. This comes from a review of Ie83e7bd807c2c79e5cbe1337292c2d1989d4ac03 Change-Id: I277d0bf9e392c969fcf0721ee1588e3e65d4650a --- .../versions/345_require_online_migration_completion.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nova/db/sqlalchemy/migrate_repo/versions/345_require_online_migration_completion.py b/nova/db/sqlalchemy/migrate_repo/versions/345_require_online_migration_completion.py index eb7a037a07..9a137eacba 100644 --- a/nova/db/sqlalchemy/migrate_repo/versions/345_require_online_migration_completion.py +++ b/nova/db/sqlalchemy/migrate_repo/versions/345_require_online_migration_completion.py @@ -39,7 +39,7 @@ def upgrade(migrate_engine): instance_types.c.deleted == 0).scalar() if count: msg = (base_msg + - _('There are still %(count)i unmigrated flavors. ') % { + _(' There are still %(count)i unmigrated flavors. ') % { 'count': count}) raise exception.ValidationError(detail=msg) @@ -47,7 +47,7 @@ def upgrade(migrate_engine): keypairs.c.deleted == 0).scalar() if count: msg = (base_msg + - _('There are still %(count)i unmigrated keypairs. ') % { + _(' There are still %(count)i unmigrated keypairs. ') % { 'count': count}) raise exception.ValidationError(detail=msg) @@ -55,7 +55,7 @@ def upgrade(migrate_engine): aggregates.c.deleted == 0).scalar() if count: msg = (base_msg + - _('There are still %(count)i unmigrated aggregates. ') % { + _(' There are still %(count)i unmigrated aggregates. ') % { 'count': count}) raise exception.ValidationError(detail=msg) @@ -63,6 +63,6 @@ def upgrade(migrate_engine): instance_groups.c.deleted == 0).scalar() if count: msg = (base_msg + - _('There are still %(count)i unmigrated instance groups. ') % { + _(' There are still %(count)i unmigrated instance groups. ') % { 'count': count}) raise exception.ValidationError(detail=msg)