PR#1911: hub: [newRepo] raise error when tag doesn't exist

Merges #1911
https://pagure.io/koji/pull-request/1911

Fixes: #1910
https://pagure.io/koji/issue/1910
API call newRepo with non existing tag should returns an error
This commit is contained in:
Tomas Kopecek 2020-01-23 16:29:30 +01:00
commit dbef6d2530

View file

@ -11465,6 +11465,8 @@ class RootExports(object):
pass
else:
context.session.assertPerm('repo')
# raise error when tag does not exist
get_tag(tag, strict=True, event=event)
opts = {}
if event is not None:
opts['event'] = event