Remove Sqlite validation for database_connection
Remove unneeded validation of database_connection for Sqlite, because it is under case of unsupported db backend. Change-Id: Id10bd0b598c350330fd4179c7311a900c4854b59
This commit is contained in:
parent
8c4357fde2
commit
92a53a6b58
@ -290,7 +290,7 @@ class sahara(
|
||||
Package['sahara'] ~> Service['sahara']
|
||||
Class['sahara::policy'] ~> Service['sahara']
|
||||
|
||||
validate_re($database_connection, '(sqlite|mysql|postgresql):\/\/(\S+:\S+@\S+\/\S+)?')
|
||||
validate_re($database_connection, '(mysql|postgresql):\/\/(\S+:\S+@\S+\/\S+)?')
|
||||
|
||||
case $database_connection {
|
||||
/^mysql:\/\//: {
|
||||
@ -300,9 +300,6 @@ class sahara(
|
||||
/^postgresql:\/\//: {
|
||||
require postgresql::lib::python
|
||||
}
|
||||
/^sqlite:\/\//: {
|
||||
fail('Sahara does not support sqlite!')
|
||||
}
|
||||
default: {
|
||||
fail('Unsupported db backend configured')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user