Merge "Do not complete MongoDBContext with out replset"

This commit is contained in:
Zuul 2018-03-01 07:06:12 +00:00 committed by Gerrit Code Review
commit 338a48b09a
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class MongoDBContext(OSContextGenerator):
mongo_servers.append('{}:{}'.format(host, port))
if mongo_servers:
if mongo_servers and replset:
return {
'db_mongo_servers': ','.join(mongo_servers),
'db_name': CEILOMETER_DB,