From 47985f76ab69c8888bd581d3f274882ae6a532c3 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 14 2020 14:17:17 +0000 Subject: cli: fix un/lock-tag permission handling Fixes: https://pagure.io/koji/issue/2216 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 6c2bcc8..23c8530 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -5078,7 +5078,7 @@ def handle_lock_tag(goptions, session, args): 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 @@ def handle_unlock_tag(goptions, session, args): 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):