allow to specify drivername for postgres db

in newer versions of sqlalchemy a drivername is required to
avoid a warning. For postgres the driver is psycopg2.
The driver is optional.

Change-Id: Iffc84d224fd9891261d787241687991fd97f48f7
This commit is contained in:
Benedikt Trefzer 2020-07-28 16:12:22 +02:00
parent d5e3a563e6
commit 7e0ea6b296
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class keystone::db (
$database_max_overflow_real = pick($::keystone::database_max_overflow, $database_max_overflow)
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection_real,
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
['^(sqlite|mysql(\+pymysql)?|postgresql(\+psycopg2)?):\/\/(\S+:\S+@\S+\/\S+)?'])
oslo::db { 'keystone_config':
db_max_retries => $database_db_max_retries,

View File

@ -0,0 +1,3 @@
---
features:
- Allow to specify drivername for postgres db