fix HasTest
This commit is contained in:
parent
5149a4609e
commit
bfbc01c1b8
1 changed files with 2 additions and 2 deletions
|
|
@ -67,9 +67,9 @@ class HasTest(BaseSimpleTest):
|
|||
|
||||
def __init__(self, str):
|
||||
try:
|
||||
self.field = str.split(None, 1)[1]
|
||||
self.field = str.split()[1]
|
||||
except IndexError:
|
||||
raise koji.GenericError, "Empty python expression in policy"
|
||||
raise koji.GenericError, "Invalid or missing field in policy test"
|
||||
|
||||
def run(self, data):
|
||||
return self.field in data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue