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:
commit
dbef6d2530
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue