Remove redundant 'fail' fallback
Any value with unexpected type should be caught by typed parameters. Change-Id: Idc9d3352ab730c6eda9c3bca9a4cc7386c352ff1
This commit is contained in:
parent
62b067124a
commit
35cd69a443
@ -163,15 +163,13 @@ class ovn::northd(
|
||||
$ovn_northd_nb_db_opts = $ovn_northd_nb_db ? {
|
||||
String => ["--ovn-northd-nb-db=${ovn_northd_nb_db}"],
|
||||
Array[String] => ["--ovn-northd-nb-db=${join($ovn_northd_nb_db, ',')}"],
|
||||
undef => [],
|
||||
default => fail('ovn_northd_nb_db_opts must be of type String or Array[String]'),
|
||||
default => [],
|
||||
}
|
||||
|
||||
$ovn_northd_sb_db_opts = $ovn_northd_sb_db ? {
|
||||
String => ["--ovn-northd-sb-db=${ovn_northd_sb_db}"],
|
||||
Array[String] => ["--ovn-northd-sb-db=${join($ovn_northd_sb_db, ',')}"],
|
||||
undef => [],
|
||||
default => fail('ovn_northd_sb_db_opts must be of type String or Array[String]'),
|
||||
default => [],
|
||||
}
|
||||
|
||||
if $ovn_northd_ssl_key and $ovn_northd_ssl_cert and $ovn_northd_ssl_ca_cert {
|
||||
|
Loading…
x
Reference in New Issue
Block a user