Jeremyb has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/54692


Change subject: futureproof for ruby1.9.x (not in use yet)
......................................................................

futureproof for ruby1.9.x (not in use yet)

Change-Id: I50d37166e17b84018a011a1e64a488cce183feed
---
M templates/ircecho/default.erb
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/92/54692/1

diff --git a/templates/ircecho/default.erb b/templates/ircecho/default.erb
index 7b58384..aca00ec 100644
--- a/templates/ircecho/default.erb
+++ b/templates/ircecho/default.erb
@@ -6,6 +6,9 @@
 def infile(logs)
        # make a list of flattened strings w/ one log each and that log's 
channels
        logs = logs.map {|log,channels|
+               # ensure channels is an Array, not a bare string
+               channels = Array(channels)
+
                # prepend # on channel name if missing
                channels = channels.map {|channel| channel.sub(/^#?/,'#') }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50d37166e17b84018a011a1e64a488cce183feed
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jeremyb <jer...@tuxmachine.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to