diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-08-04 11:20:55 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-08-04 17:12:02 +0800 |
commit | 93a04675d39c790c97d4ff064436718d708a7495 (patch) | |
tree | e2870520ef6268d1974ba1312032b79915bf152e | |
parent | 428dbe1eec5a77d70af192b7eccaff89495940db (diff) | |
download | oslo-db-93a04675d39c790c97d4ff064436718d708a7495.tar.gz |
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
-rw-r--r-- | oslo_db/options.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |