Merge "storage: deprecates mongodb_replica_set option"
This commit is contained in:
commit
b20d38b72d
@ -68,16 +68,19 @@ OPTS = [
|
||||
default=None,
|
||||
help='The connection string used to connect to the event '
|
||||
'database. (if unset, connection is used)'),
|
||||
cfg.StrOpt('mongodb_replica_set',
|
||||
default='',
|
||||
help='The name of the replica set which is used to connect to '
|
||||
'MongoDB database. If it is set, MongoReplicaSetClient '
|
||||
'will be used instead of MongoClient.'),
|
||||
cfg.IntOpt('db2nosql_resource_id_maxlen',
|
||||
default=512,
|
||||
help="The max length of resources id in DB2 nosql, "
|
||||
"the value should be larger than len(hostname) * 2 "
|
||||
"as compute node's resource id is <hostname>_<nodename>."),
|
||||
|
||||
# Deprecated in liberty
|
||||
cfg.StrOpt('mongodb_replica_set',
|
||||
deprecated_for_removal=True,
|
||||
default='',
|
||||
help=('The name of the replica set which is used to connect to '
|
||||
'MongoDB database. Add "?replicaSet=myreplicatset" in '
|
||||
'your connection URI instead.')),
|
||||
]
|
||||
|
||||
cfg.CONF.register_opts(OPTS, group='database')
|
||||
|
Loading…
Reference in New Issue
Block a user