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: Ia0be0fce91caa292517715b78c1f3f711b9ab5ec
This commit is contained in:
parent
e656d11e78
commit
622494f657
@ -57,11 +57,7 @@ class neutron::db (
|
||||
|
||||
include neutron::deps
|
||||
|
||||
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection,
|
||||
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
|
||||
|
||||
if $database_connection {
|
||||
|
||||
oslo::db { 'neutron_config':
|
||||
connection => $database_connection,
|
||||
connection_recycle_time => $database_connection_recycle_time,
|
||||
|
Loading…
x
Reference in New Issue
Block a user