for editTag2, perm option is preferred over perm_id alias

Versions 1.21 and 1.22 of kojihub will throw an error if perm_id=None is given
For details see: https://pagure.io/koji/issue/2375
This commit is contained in:
Mike McLean 2020-07-28 11:21:44 -04:00 committed by Tomas Kopecek
parent 4e46be954e
commit 7beeb838b1

View file

@ -5039,7 +5039,7 @@ def handle_edit_tag(goptions, session, args):
if options.arches:
opts['arches'] = koji.parse_arches(options.arches)
if options.no_perm:
opts['perm_id'] = None
opts['perm'] = None
elif options.perm:
opts['perm'] = options.perm
if options.unlock: