Fix a exception error

For shrink, if not specified instance_id should throw
"Not instances specified for shrink operation."

Change-Id: I1aa48d9306873e50e6dd5bb54f624508faac97c6
This commit is contained in:
jiansong 2017-07-05 23:26:29 -07:00 committed by jian.song
parent 7c258abb01
commit 37f6675bc5
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()