module generation: make package tags accessible in template (#48213)

This commit is contained in:
Asa 2025-03-14 18:08:14 -04:00 committed by GitHub
parent 60be77f761
commit e35c5ec104
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -564,6 +564,12 @@ def __init__(self, configuration):
def spec(self):
return self.conf.spec
@tengine.context_property
def tags(self):
if not hasattr(self.spec.package, "tags"):
return []
return self.spec.package.tags
@tengine.context_property
def timestamp(self):
return datetime.datetime.now()