Fix "abf publish" (use PUT method)

This commit is contained in:
Mikhail Novosyolov 2019-10-16 21:42:21 +03:00
parent 92d68b9b6a
commit 5e970d3d5e

View file

@ -374,7 +374,7 @@ class AbfJson(object):
def publish(self, task_id):
task_id = int(task_id)
URL = "/api/v1/build_lists/%d/publish.json" % task_id
return self.get_url_contents(URL)
return self.get_url_contents(URL, GET=None)
def new_pull_request(self, data, p_id):
URL = "/api/v1/projects/%d/pull_requests.json" % p_id