Do not validate database_connection format
Currently we validate database_connection in 2 layers, each puppet modules and puppet-oslo, however this makes it difficult to maintain validation pattern because we always need to fix both. This patch removes the validation from each puppet modules so that we need to maitain only one place, puppet-oslo to update validation logic. Change-Id: If13825dff529c91508ae19e48c7918cbd2b50245
This commit is contained in:
parent
789065b481
commit
4c943fb458
|
@ -73,9 +73,6 @@ class glance::api::db (
|
|||
$database_retry_interval_real = pick($::glance::api::database_retry_interval, $database_retry_interval)
|
||||
$database_max_overflow_real = pick($::glance::api::database_max_overflow, $database_max_overflow)
|
||||
|
||||
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection_real,
|
||||
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
|
||||
|
||||
oslo::db { 'glance_api_config':
|
||||
db_max_retries => $database_db_max_retries,
|
||||
connection => $database_connection_real,
|
||||
|
|
Loading…
Reference in New Issue