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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user