#2900 kojiweb - Fix getting tag ID for buildMaven taskinfo page.
Merged 11 months ago by tkopecek. Opened a year ago by josepht.
josepht/koji issue-2899  into  master

file modified
+5 -2
@@ -685,10 +685,13 @@ 

  

      if task['method'] in ('buildArch', 'buildMaven', 'buildSRPMFromSCM'):

          if len(params) > 1:

+             tag_id = params[1]

+             if isinstance(tag_id, dict):

+                 tag_id = tag_id.get('id')

              try:

-                 values['buildTag'] = server.getTag(params[1], strict=True)

+                 values['buildTag'] = server.getTag(tag_id, strict=True)

              except koji.GenericError:

-                 values['buildTag'] = {'name': "%d (deleted)" % params[1], 'id': None}

+                 values['buildTag'] = {'name': "%d (deleted)" % tag_id, 'id': None}

      elif task['method'] == 'tagBuild':

          destTag = server.getTag(params[0])

          build = server.getBuild(params[1])

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

a year ago

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

11 months ago

Commit 0019b0b fixes this pull-request

Pull-Request has been merged by tkopecek

11 months ago