Merge "Fix a exception error"

This commit is contained in:
Jenkins 2017-07-11 15:29:43 +00:00 committed by Gerrit Code Review
commit 2874d53ce1
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ class MongoDbCluster(models.Cluster):
"""
if not len(instances) > 0:
raise exception.TroveError(
_('Not instances specified for grow operation.')
_('No instances specified for grow operation.')
)
self._prep_resize()
self._check_quotas(self.context, instances)
@ -339,7 +339,7 @@ class MongoDbCluster(models.Cluster):
"""
if not len(instance_ids) > 0:
raise exception.TroveError(
_('Not instances specified for grow operation.')
_('No instances specified for shrink operation.')
)
self._prep_resize()