Rush has uploaded a new change for review.

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

Change subject: phab: strip spaces around addresses
......................................................................

phab: strip spaces around addresses

Change-Id: I2f8990b5e030a726fdec3d13380fcabc610cd5dd
---
M modules/phabricator/files/phab_epipe.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/43/255043/1

diff --git a/modules/phabricator/files/phab_epipe.py 
b/modules/phabricator/files/phab_epipe.py
index 12999f0..81c9ba5 100644
--- a/modules/phabricator/files/phab_epipe.py
+++ b/modules/phabricator/files/phab_epipe.py
@@ -59,8 +59,8 @@
     :param list_of_dests: list of dest email strings
     :returns: string
     """
-    for dest in list_of_dests:
-        task = re.match('^T(\d+)@', dest)
+    for dest in [m.strip() for m in list_of_dests]:
+        task = re.match('^[T|t](\d+)@', dest)
         if task:
             return int(task.group(1))
     return ''

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f8990b5e030a726fdec3d13380fcabc610cd5dd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Rush <r...@wikimedia.org>

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

Reply via email to