#2223 cli: fix un/lock-tag permission handling
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue2216  into  master

file modified
+2 -2
@@ -5078,7 +5078,7 @@ 

                  print(_("Would have set permission requirement %s for tag %s") %

                        (perm, tag['name']))

                  continue

-             session.editTag2(tag['id'], perm=perm_id)

+             session.editTag2(tag['id'], perm_id=perm_id)

  

  

  def handle_unlock_tag(goptions, session, args):
@@ -5120,7 +5120,7 @@ 

          if options.test:

              print("Tag %s: skipping changes: %r" % (tag['name'], opts))

          else:

-             session.editTag2(tag['id'], locked=False, perm_id=None)

+             session.editTag2(tag['id'], **opts)

  

  

  def handle_add_tag_inheritance(goptions, session, args):

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

2 years ago

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

2 years ago

Commit 92863f6 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago