
This change removes the intermediate step of converting the SiteDocumentData object returned by the parser to a dictionary. This change depends on [0], a related change that updates the Jinja2 templates and site processor to use data objects instead of a dictionary. [0] https://review.opendev.org/#/c/661092/ Depends-On: I66ebfeaf5d6ca76b6dee5a2285a74bad8b06b720 Change-Id: I991c9f6590752b36050dc5239d9ea3f3dfe8c5bc
14 lines
258 B
Django/Jinja
14 lines
258 B
Django/Jinja
---
|
|
schema: pegleg/SiteDefinition/v1
|
|
metadata:
|
|
schema: metadata/Document/v1
|
|
layeringDefinition:
|
|
abstract: false
|
|
layer: site
|
|
name: {{ data.site_info.region_name }}
|
|
storagePolicy: cleartext
|
|
data:
|
|
site_type: {{ data.site_info.sitetype }}
|
|
...
|
|
|