Deprecate argument sqlite_db in method set_defaults

This is follow up of commit 0a1bae9859.
Log warning when pass keyword argument sqlite_db.

Related-Bug: #1329086
Change-Id: Ibed55dc9f28b7813bd96fb5e6f5138de0667591f
This commit is contained in:
ChangBo Guo(gcb) 2016-08-04 11:20:55 +08:00
parent 428dbe1eec
commit 93a04675d3

View File

@ -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):