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: If1f63aaf571af497105871da297e1c07d7978c54
This commit is contained in:
parent
34cb28a6f8
commit
81a77ce901
@ -72,9 +72,6 @@ class placement::db (
|
||||
include placement::deps
|
||||
include placement::config
|
||||
|
||||
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection,
|
||||
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
|
||||
|
||||
oslo::db { 'placement_config':
|
||||
config_group => 'placement_database',
|
||||
sqlite_synchronous => $database_sqlite_synchronous,
|
||||
|
Loading…
Reference in New Issue
Block a user