cli: fix un/lock-tag permission handling
Fixes: https://pagure.io/koji/issue/2216
This commit is contained in:
parent
1c70ec1186
commit
47985f76ab
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue