Deprecate argument sqlite_db in method set_defaults
This is follow up of commit 0a1bae9859079fb21a03716be947c5f1da6db0a2. Log warning when pass keyword argument sqlite_db. Related-Bug: #1329086 Change-Id: Ibed55dc9f28b7813bd96fb5e6f5138de0667591f
This commit is contained in:
parent
428dbe1eec
commit
93a04675d3
@ -10,6 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from debtcollector import removals
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
|
|
||||||
@ -142,6 +143,9 @@ database_opts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@removals.removed_kwarg("sqlite_db",
|
||||||
|
"Config option sqlite_db is deprecated for removal,"
|
||||||
|
"please use option `connection`.")
|
||||||
def set_defaults(conf, connection=None, sqlite_db=None,
|
def set_defaults(conf, connection=None, sqlite_db=None,
|
||||||
max_pool_size=None, max_overflow=None,
|
max_pool_size=None, max_overflow=None,
|
||||||
pool_timeout=None):
|
pool_timeout=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user