generated from coulomb/repo-seed
feat: add deployment zone overlays
This commit is contained in:
@@ -340,9 +340,12 @@ def _export_attributes(declaration: Declaration) -> dict[str, Any]:
|
||||
|
||||
def _base_export_attributes(declaration: Declaration) -> dict[str, Any]:
|
||||
source_links = declaration.metadata.get("source_links", [])
|
||||
return {
|
||||
attributes = {
|
||||
"owner": declaration.metadata.get("owner", ""),
|
||||
"description": declaration.spec.get("description", ""),
|
||||
"source_path": str(declaration.path),
|
||||
"source_links": source_links if isinstance(source_links, list) else [],
|
||||
}
|
||||
if isinstance(declaration.spec.get("deployment_overlay"), dict):
|
||||
attributes["deployment_overlay"] = declaration.spec["deployment_overlay"]
|
||||
return attributes
|
||||
|
||||
Reference in New Issue
Block a user