Ori.livneh has submitted this change and it was merged.

Change subject: phabricator::logmail: support an array of recipient addresses
......................................................................


phabricator::logmail: support an array of recipient addresses

Change-Id: Iad5ec645118e61c3617ca87c54f4a5eef341c379
---
M modules/phabricator/manifests/logmail.pp
M modules/phabricator/templates/community_metrics.sh.erb
M modules/phabricator/templates/project_changes.sh.erb
3 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Ori.livneh: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/phabricator/manifests/logmail.pp 
b/modules/phabricator/manifests/logmail.pp
index b67e52e..304da0f 100644
--- a/modules/phabricator/manifests/logmail.pp
+++ b/modules/phabricator/manifests/logmail.pp
@@ -10,7 +10,7 @@
 #   script you want to execute
 #
 # [*rcpt_address*]
-#   mail to: address
+#   mail to: address (or array of addresses)
 #
 # [*sndr_address*]
 #   mail from: address
diff --git a/modules/phabricator/templates/community_metrics.sh.erb 
b/modules/phabricator/templates/community_metrics.sh.erb
index 1707d01..95aaa28 100644
--- a/modules/phabricator/templates/community_metrics.sh.erb
+++ b/modules/phabricator/templates/community_metrics.sh.erb
@@ -6,7 +6,7 @@
 # ! this file is managed by puppet !
 # ./modules/phabricator/templates/<%= @script_name %>.erb
 
-declare rcpt_address='<%= @rcpt_address %>'
+declare rcpt_address='<%= Array(@rcpt_address).join(',') %>'
 declare sndr_address='<%= @sndr_address %>'
 
 declare sql_host='<%= @mysql_slave %>'
diff --git a/modules/phabricator/templates/project_changes.sh.erb 
b/modules/phabricator/templates/project_changes.sh.erb
index 97a40ad..8df8010 100644
--- a/modules/phabricator/templates/project_changes.sh.erb
+++ b/modules/phabricator/templates/project_changes.sh.erb
@@ -5,7 +5,7 @@
 # ! this file is managed by puppet !
 # ./modules/phabricator/templates/<%= @script_name %>.erb
 
-declare rcpt_address='<%= @rcpt_address %>'
+declare rcpt_address='<%= Array(@rcpt_address).join(',') %>'
 declare sndr_address='<%= @sndr_address %>'
 
 declare sql_host='<%= @mysql_slave %>'

-- 
To view, visit https://gerrit.wikimedia.org/r/250210
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad5ec645118e61c3617ca87c54f4a5eef341c379
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to