Merge "Remove the check about related_to"

This commit is contained in:
Zuul 2018-01-18 02:45:47 +00:00 committed by Gerrit Code Review
commit ff9bac1a61

View File

@ -486,7 +486,7 @@ class MongoDbCluster(models.Cluster):
query_routers = [] query_routers = []
for item in instances: for item in instances:
if item['instance_type'] == 'replica': if item['instance_type'] == 'replica':
replica_requirements = ['related_to', 'name'] replica_requirements = ['name']
if not all(key in item for key in replica_requirements): if not all(key in item for key in replica_requirements):
raise exception.TroveError( raise exception.TroveError(
_('Replica instance does not have required field(s) ' _('Replica instance does not have required field(s) '