diff options
author | Zuul <zuul@review.opendev.org> | 2020-05-10 15:05:07 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-05-10 15:05:07 +0000 |
commit | 01a057269a399cd5c3113a0e073d4530fe2cdec4 (patch) | |
tree | 4fad469dcbac2a08297d119f6424ca162905307d /zuul | |
parent | 8a43c5fddd666a317e0d85116f8265fd53606c1a (diff) | |
parent | 01a545ceb84bacbbe536cf74f835465aa6e375a0 (diff) | |
download | zuul-01a057269a399cd5c3113a0e073d4530fe2cdec4.tar.gz |
Merge "Don't reconfigure the tenant on tag creation"
Diffstat (limited to 'zuul')
-rw-r--r-- | zuul/scheduler.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zuul/scheduler.py b/zuul/scheduler.py index 01254f937..cfcc64485 100644 --- a/zuul/scheduler.py +++ b/zuul/scheduler.py @@ -1282,12 +1282,17 @@ class Scheduler(threading.Thread): if ((event.branch_updated and hasattr(change, 'files') and change.updatesConfig(tenant)) or - event.branch_created or (event.branch_deleted and self.abide.hasUnparsedBranchCache(event.project_name, event.branch))): reconfigure_tenant = True + # The branch_created attribute is also true when a tag is + # created. Since we load config only from branches only trigger + # a tenant reconfiguration if the branch is set as well. + if event.branch_created and event.branch: + reconfigure_tenant = True + # If the driver knows the branch but we don't have a config, we # also need to reconfigure. This happens if a GitHub branch # was just configured as protected without a push in between. |