#6979 This pagure endpoint expects json.
Merged 6 years ago by mohanboddu. Opened 6 years ago by ralph.

file modified
+2 -1
@@ -6,6 +6,7 @@ 

  # Authors:

  #     Ralph Bean <rbean@redhat.com>

  

+ import json

  import pprint

  import sys

  import traceback
@@ -46,7 +47,7 @@ 

          namespace, package, custodian))

  

      url = PAGURE_URL + namespace + '/' + package

-     payload = {'main_admin': custodian}

+     payload = json.dumps({'main_admin': custodian})

      response = session.patch(

          url,

          data=payload,

Just debugged this with @mprahl and @pingou.

Signed-off-by: Ralph Bean rbean@redhat.com

Commit 73e98c7 fixes this pull-request

Pull-Request has been merged by mboddu@bhujji.com

6 years ago

Pull-Request has been merged by mohanboddu

6 years ago
Metadata