From 93a04675d39c790c97d4ff064436718d708a7495 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Thu, 4 Aug 2016 11:20:55 +0800 Subject: 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 --- oslo_db/options.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'oslo_db/options.py') diff --git a/oslo_db/options.py b/oslo_db/options.py index a02dad5..d5d15cf 100644 --- a/oslo_db/options.py +++ b/oslo_db/options.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +from debtcollector import removals 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, max_pool_size=None, max_overflow=None, pool_timeout=None): -- cgit v1.2.1