Merge "Do not complete MongoDBContext with out replset"
This commit is contained in:
commit
338a48b09a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue