Merge "Remove use of item's layout in Nodepool API"

This commit is contained in:
Zuul 2021-05-12 07:21:33 +00:00 committed by Gerrit Code Review
commit 7e802df42d
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class Nodepool(object):
if build_set and resources: if build_set and resources:
# we have a buildset and thus also tenant and project so we # we have a buildset and thus also tenant and project so we
# can emit project specific resource usage stats # can emit project specific resource usage stats
tenant_name = build_set.item.layout.tenant.name tenant_name = build_set.item.pipeline.tenant.name
project_name = build_set.item.change.project.canonical_name project_name = build_set.item.change.project.canonical_name
self.current_resources_by_tenant.setdefault( self.current_resources_by_tenant.setdefault(