abandon_stale.py: send data using json argument, not data argument

This is a fix for the change that was done in Idaaff88e981.

Sending through the data argument causes the abandon message to be
sent as "message" rather than the actual message.

Change-Id: I47108f4e1d3c328d832d09156a160dbf46706941
This commit is contained in:
David Pursehouse
2017-09-27 10:29:24 +02:00
parent c956c41543
commit 3b2dbc401d

View File

@@ -191,7 +191,7 @@ def _main():
try:
gerrit.post("/changes/" + change_id + "/abandon",
data={"message" : "%s" % abandon_message})
json={"message" : "%s" % abandon_message})
abandoned += 1
except Exception as e:
errors += 1