Fix bacula email logic
[mirror/dsa-puppet.git] / modules / bacula / manifests / init.pp
index 90e42af..cf83a26 100644 (file)
@@ -20,7 +20,7 @@ class bacula (
   String $ssl_server_key,
 
   Optional[String] $email_all = undef,
-  String $email_error                          = $email_all ? { true => $email_all, default => 'root@localhost' },
+  String $email_error                          = $email_all != undef ? { true => $email_all, default => 'root@localhost' },
   String $email_operator                       = $email_error,
   String $email_daemon                         = $email_error,
   Array[Stdlib::IP::Address] $public_addresses = $base::public_addresses,