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
This commit is contained in:
parent
2c1874a0ec
commit
791803de47
|
@ -39,7 +39,7 @@ def upgrade(migrate_engine):
|
||||||
instance_types.c.deleted == 0).scalar()
|
instance_types.c.deleted == 0).scalar()
|
||||||
if count:
|
if count:
|
||||||
msg = (base_msg +
|
msg = (base_msg +
|
||||||
_('There are still %(count)i unmigrated flavors. ') % {
|
_(' There are still %(count)i unmigrated flavors. ') % {
|
||||||
'count': count})
|
'count': count})
|
||||||
raise exception.ValidationError(detail=msg)
|
raise exception.ValidationError(detail=msg)
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ def upgrade(migrate_engine):
|
||||||
keypairs.c.deleted == 0).scalar()
|
keypairs.c.deleted == 0).scalar()
|
||||||
if count:
|
if count:
|
||||||
msg = (base_msg +
|
msg = (base_msg +
|
||||||
_('There are still %(count)i unmigrated keypairs. ') % {
|
_(' There are still %(count)i unmigrated keypairs. ') % {
|
||||||
'count': count})
|
'count': count})
|
||||||
raise exception.ValidationError(detail=msg)
|
raise exception.ValidationError(detail=msg)
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ def upgrade(migrate_engine):
|
||||||
aggregates.c.deleted == 0).scalar()
|
aggregates.c.deleted == 0).scalar()
|
||||||
if count:
|
if count:
|
||||||
msg = (base_msg +
|
msg = (base_msg +
|
||||||
_('There are still %(count)i unmigrated aggregates. ') % {
|
_(' There are still %(count)i unmigrated aggregates. ') % {
|
||||||
'count': count})
|
'count': count})
|
||||||
raise exception.ValidationError(detail=msg)
|
raise exception.ValidationError(detail=msg)
|
||||||
|
|
||||||
|
@ -63,6 +63,6 @@ def upgrade(migrate_engine):
|
||||||
instance_groups.c.deleted == 0).scalar()
|
instance_groups.c.deleted == 0).scalar()
|
||||||
if count:
|
if count:
|
||||||
msg = (base_msg +
|
msg = (base_msg +
|
||||||
_('There are still %(count)i unmigrated instance groups. ') % {
|
_(' There are still %(count)i unmigrated instance groups. ') % {
|
||||||
'count': count})
|
'count': count})
|
||||||
raise exception.ValidationError(detail=msg)
|
raise exception.ValidationError(detail=msg)
|
||||||
|
|
Loading…
Reference in New Issue