aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests/list.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sympa/manifests/list.pp')
-rw-r--r--modules/sympa/manifests/list.pp11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/sympa/manifests/list.pp b/modules/sympa/manifests/list.pp
index e660b38c..43001239 100644
--- a/modules/sympa/manifests/list.pp
+++ b/modules/sympa/manifests/list.pp
@@ -34,15 +34,10 @@ define sympa::list( $subject,
notify => Service['sympa'],
}
- if $sender_ldap_group {
- sympa::scenario::sender_ldap_group { $name:
+ if $sender_ldap_group or $sender_email {
+ sympa::scenario::sender_restricted { $name:
ldap_group => $sender_ldap_group,
- }
- }
-
- if $sender_email {
- sympa::scenario::sender_email { $name:
- email => $sender_email,
+ email => $sender_email,
}
}