diff options
author | Zuul <zuul@review.opendev.org> | 2019-07-18 13:54:09 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-07-18 13:54:09 +0000 |
commit | e7e8cb81fa5eaf2632a55f0cb6e818abc2dab4d1 (patch) | |
tree | f1ae02d1857ba45c18bb5d8ca2a2f7db04304017 /zuul/driver/git | |
parent | a9ec8cbd35e12f392ae6db917755a52310466514 (diff) | |
parent | 3b4513913709079a3e6b175517ff3c51ea634d8b (diff) | |
download | zuul-e7e8cb81fa5eaf2632a55f0cb6e818abc2dab4d1.tar.gz |
Merge "Fix GitEventFilter.__init__"
Diffstat (limited to 'zuul/driver/git')
-rw-r--r-- | zuul/driver/git/gitmodel.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zuul/driver/git/gitmodel.py b/zuul/driver/git/gitmodel.py index c59833a45..df661de5f 100644 --- a/zuul/driver/git/gitmodel.py +++ b/zuul/driver/git/gitmodel.py @@ -40,13 +40,14 @@ class GitTriggerEvent(TriggerEvent): class GitEventFilter(EventFilter): - def __init__(self, trigger, types=[], refs=[], + def __init__(self, trigger, types=None, refs=None, ignore_deletes=True): super().__init__(trigger) self._refs = refs - self.types = types + self.types = types if types is not None else [] + refs = refs if refs is not None else [] self.refs = [re.compile(x) for x in refs] self.ignore_deletes = ignore_deletes |