Remove unused function validate_conf
Change-Id: I2a1abcbefb639e82949291f997f6946f136b3dd2
This commit is contained in:
@@ -63,16 +63,6 @@ class GerritTrigger(BaseTrigger):
|
||||
return efilters
|
||||
|
||||
|
||||
def validate_conf(trigger_conf):
|
||||
"""Validates the layout's trigger data."""
|
||||
events_with_ref = ('ref-updated', )
|
||||
for event in trigger_conf:
|
||||
if event['event'] not in events_with_ref and event.get('ref', False):
|
||||
raise v.Invalid(
|
||||
"The event %s does not include ref information, Zuul cannot "
|
||||
"use ref filter 'ref: %s'" % (event['event'], event['ref']))
|
||||
|
||||
|
||||
def getSchema():
|
||||
variable_dict = v.Schema(dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user