From 4b7476294e37b82ba8bfef91b43968db915a5be4 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 16 May 2012 22:36:30 -0400 Subject: [PATCH] Update gerritbot to respond to VRFY +2/-2. Change-Id: Iece4652e00b665137061709b4d3545b2f37eb248 --- modules/gerrit/files/gerritbot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gerrit/files/gerritbot b/modules/gerrit/files/gerritbot index bc98f047fd..1831b6c805 100755 --- a/modules/gerrit/files/gerritbot +++ b/modules/gerrit/files/gerritbot @@ -110,16 +110,16 @@ class Gerrit(threading.Thread): self.ircbot.send(msg) for approval in data.get('approvals', []): - if (approval['type'] == 'VRIF' and approval['value'] == '-1' and - 'x-vrif-minus-1' in self.events): + if (approval['type'] == 'VRIF' and approval['value'] == '-2' and + 'x-vrif-minus-2' in self.events): msg = 'Verification of a change to %s failed: %s %s' % ( data['change']['project'], data['change']['subject'], data['change']['url']) self.ircbot.send(msg) - if (approval['type'] == 'VRIF' and approval['value'] == '1' and - 'x-vrif-plus-1' in self.events): + if (approval['type'] == 'VRIF' and approval['value'] == '2' and + 'x-vrif-plus-2' in self.events): msg = 'Verification of a change to %s succeeded: %s %s' % ( data['change']['project'], data['change']['subject'],