From 35cd69a4430d9db2a62910af806189db862ede88 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 10 Jul 2024 00:52:02 +0900 Subject: [PATCH] Remove redundant 'fail' fallback Any value with unexpected type should be caught by typed parameters. Change-Id: Idc9d3352ab730c6eda9c3bca9a4cc7386c352ff1 --- manifests/northd.pp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/manifests/northd.pp b/manifests/northd.pp index 29f0764..2587f97 100644 --- a/manifests/northd.pp +++ b/manifests/northd.pp @@ -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 {