diff options
author | jiansong <jian.song@easystack.cn> | 2017-07-05 23:26:29 -0700 |
---|---|---|
committer | jian.song <jian.song@easystack.cn> | 2017-07-07 08:04:35 +0000 |
commit | 37f6675bc5e4cb1f5449fe1f509b310514f603be (patch) | |
tree | 37528cf93d4873d43e48f46294480ca8aa826197 | |
parent | 7c258abb01047355813be6a1002b4c1c253ab41c (diff) | |
download | trove-37f6675bc5e4cb1f5449fe1f509b310514f603be.tar.gz |
Fix a exception error
For shrink, if not specified instance_id should throw
"Not instances specified for shrink operation."
Change-Id: I1aa48d9306873e50e6dd5bb54f624508faac97c6
-rw-r--r-- | trove/common/strategies/cluster/experimental/mongodb/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/common/strategies/cluster/experimental/mongodb/api.py b/trove/common/strategies/cluster/experimental/mongodb/api.py index 87efaddd..642ee59c 100644 --- a/trove/common/strategies/cluster/experimental/mongodb/api.py +++ b/trove/common/strategies/cluster/experimental/mongodb/api.py @@ -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() |