SidetagOwnerTest: fix none value of tag/fromtag as well
This commit is contained in:
parent
b9064320fe
commit
385f35641a
1 changed files with 3 additions and 1 deletions
|
|
@ -85,7 +85,9 @@ class SidetagOwnerTest(koji.policy.MatchTest):
|
|||
for field in fields:
|
||||
if field not in data:
|
||||
return False
|
||||
tag = get_tag(data[field])
|
||||
tag = data.get(field)
|
||||
if tag:
|
||||
tag = get_tag(tag)
|
||||
if not tag or not is_sidetag_owner(tag, user):
|
||||
return False
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue