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:
parent
7c258abb01
commit
37f6675bc5
@ -307,7 +307,7 @@ class MongoDbCluster(models.Cluster):
|
|||||||
"""
|
"""
|
||||||
if not len(instances) > 0:
|
if not len(instances) > 0:
|
||||||
raise exception.TroveError(
|
raise exception.TroveError(
|
||||||
_('Not instances specified for grow operation.')
|
_('No instances specified for grow operation.')
|
||||||
)
|
)
|
||||||
self._prep_resize()
|
self._prep_resize()
|
||||||
self._check_quotas(self.context, instances)
|
self._check_quotas(self.context, instances)
|
||||||
@ -339,7 +339,7 @@ class MongoDbCluster(models.Cluster):
|
|||||||
"""
|
"""
|
||||||
if not len(instance_ids) > 0:
|
if not len(instance_ids) > 0:
|
||||||
raise exception.TroveError(
|
raise exception.TroveError(
|
||||||
_('Not instances specified for grow operation.')
|
_('No instances specified for shrink operation.')
|
||||||
)
|
)
|
||||||
|
|
||||||
self._prep_resize()
|
self._prep_resize()
|
||||||
|
Loading…
Reference in New Issue
Block a user